问题描述
我的Java App Engine托管虚拟机构建不会再使用部署gcloud预览应用程序deploy target / myapp-SNAPSHOT
我得到这个:
ERROR:在目录
中找不到有效的App Engine配置文件
code> gcloud preview app deploy 在我们的gcloud 2015.04.14发行版中已更改,您现在必须指定模块的.yaml文件以及 - project projectID
。文档应该很快更新。
对于Java,我们发布了一个更新的maven插件。在您的pom.xml中,请添加以下内容:
< plugin>
< groupId> com.google.appengine< / groupId>
< artifactId> gcloud-maven-plugin< / artifactId>
< version> 0.9.57.v20150425< / version>
<配置>
< gcloud_project> XXX< / gcloud_project>
< / configuration>
< / plugin>
mvn gcloud:deploy
p>
更新到特定版本的SDK
您有一些SDK版本,但您想更改为一个特定的非最新版本,添加属性:
$ $ 返回到当前版本的SDK $ 然后执行: $ My java App Engine Managed VMs build doesn't deploy any more using The usage of For Java, we've released an updated maven plugin. In your pom.xml, please add the following: You have some version of the SDK, but you want to change to a specific non-latest version, add the property: $ Then run: $ $ Then run: $ 这篇关于我的Java App Engine托管虚拟机版本不会在2015年4月14日更新后部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! gcloud config set --scope =安装component_manager / fixed_sdk_version 0.9.55 $然后运行:
gcloud组件更新
gcloud config unset --scope = installation component_manager / fixed_sdk_version
gcloud组件更新
gcloud preview app deploy target/myapp-SNAPSHOT
I get this:ERROR: Found no valid App Engine configuration files in directory
gcloud preview app deploy
changed in our gcloud 2015.04.14 release, you now have to specify the .yaml file for your module as well as --project projectID
. The documentation should be updated shortly.<plugin> <groupId>com.google.appengine</groupId> <artifactId>gcloud-maven-plugin</artifactId> <version>0.9.57.v20150425</version> <configuration> <gcloud_project>XXX</gcloud_project> </configuration></plugin>
mvn gcloud:deploy
Update to a specific version of the SDK
gcloud config set --scope=installation component_manager/fixed_sdk_version 0.9.55
gcloud components update
Returning to the current version of the SDK
gcloud config unset --scope=installation component_manager/fixed_sdk_version
gcloud components update