How to set version when deploying gae java?

梦想的初衷 提交于 2019-12-02 02:37:22

问题


Since Intellij Idea IDE gae deployment plugin does not work, I have to use mvn appengine:update. It always deploy to version 1, ignoring version in appengine-web.xml.

How to set version with mvn appengine:update deployment?


回答1:


You can set it via a Maven property:

<properties>
    <appengine.appId>my-application-id</appengine.appId>
    <appengine.version>my-application-version</appengine.version>
</properties>

PS: I'm also setting the applicationId here, you don't necessarily need that.




回答2:


Set the version in plugin property

<plugin>
    <groupId>com.google.cloud.tools</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>1.3.2</version>
    <configuration>
      <version>2</version>
    </configuration>
  </plugin>


来源:https://stackoverflow.com/questions/40071171/how-to-set-version-when-deploying-gae-java

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