My java App Engine Managed VMs build doesn't deploy after 4/14/2015 update

佐手、 提交于 2019-12-19 04:06:19

问题


My java App Engine Managed VMs build doesn't deploy any more using gcloud preview app deploy target/myapp-SNAPSHOT I get this: ERROR: Found no valid App Engine configuration files in directory


回答1:


The usage of 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.

For Java, we've released an updated maven plugin. In your pom.xml, please add the following:

<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

You have some version of the SDK, but you want to change to a specific non-latest version, add the property:

$ gcloud config set --scope=installation component_manager/fixed_sdk_version 0.9.55

Then run:

$ gcloud components update

Returning to the current version of the SDK

$ gcloud config unset --scope=installation component_manager/fixed_sdk_version

Then run:

$ gcloud components update



来源:https://stackoverflow.com/questions/29664732/my-java-app-engine-managed-vms-build-doesnt-deploy-after-4-14-2015-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!