我正在使用GAE,我通常使用eclipse插件进行部署,它可以让我选择发送一个版本来上传,但是我想通过命令行来完成,命令如下
mvn appengine:deploy
但是我想设置“版本”参数,但我不知道如何。
答案 0 :(得分:0)
要解决这个问题,我在pom中添加了以下插件:
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>gcloud-maven-plugin</artifactId>
<version>2.0.9.120.v20160803</version>
<configuration>
<gcloud_directory>/usr/lib/google-cloud-sdk</gcloud_directory>
</configuration>
</plugin>
我执行了以下命令:
mvn gcloud:deploy -Dgcloud.version=VERSION