appengine-modules-sample-java icon indicating copy to clipboard operation
appengine-modules-sample-java copied to clipboard

Maven property ${appengine.app.version} get interpolated

Open mosofsky-netbase opened this issue 10 years ago • 0 comments

The pom.xml files for the modules seem to be missing a <configuration> section for this plugin:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.3</version>
  </plugin>

That's preventing a substitution of ${appengine.app.version} from happening in appengine-web.xml. I've described the problem in more detail here: http://stackoverflow.com/questions/27475714/why-doesnt-maven-property-appengine-app-version-get-interpolated-in-multi-mo/27475715

What I notice is that the version number is just hard coded in appengine-web.xml: https://github.com/GoogleCloudPlatform/appengine-modules-sample-java/blob/master/appengine-modules-shardedcounter/src/main/webapp/WEB-INF/appengine-web.xml:

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>yet-another-sharded-counter</application>
  <version>1</version>
  <threadsafe>true</threadsafe>

  <module>shardedcounter</module>

</appengine-web-app>

I'd like to propose to you the solution I've documented on stackoverflow: http://stackoverflow.com/a/27475715/2848676

mosofsky-netbase avatar Dec 15 '14 00:12 mosofsky-netbase