部署到特定版本

时间:2017-12-28 16:48:55

标签: java maven google-app-engine

我正在使用GAE,我通常使用eclipse插件进行部署,它可以让我选择发送一个版本来上传,但是我想通过命令行来完成,命令如下

mvn appengine:deploy

但是我想设置“版本”参数,但我不知道如何。

1 个答案:

答案 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