Kyaw Tun
Kyaw Tun

Reputation: 13131

How to set version when deploying gae java?

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?

Upvotes: 2

Views: 1377

Answers (4)

Indrajeet Gour
Indrajeet Gour

Reputation: 4490

Another way is, don't add anything on the app engine plugin as it is hard to changes each time the pom.xml better pass the version information from the command line, like this

mvn clean package appengine:deploy -Dapp.deploy.version=your-version-here

reference document here

Upvotes: 2

Pamba
Pamba

Reputation: 822

Add the following into the plugins section in the project pom.xml file:

<plugin>
    <groupId>com.google.cloud.tools</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>2.2.0</version>
    <configuration>
        <deploy.projectId>java</deploy.projectId>
        <deploy.version>1</deploy.version>
    </configuration>
</plugin>

Upvotes: 1

Vikash Gupta
Vikash Gupta

Reputation: 169

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>

Upvotes: 0

TomTasche
TomTasche

Reputation: 5526

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.

Upvotes: 1

Related Questions