google app engine - appengine-maven-plugin has a maven-war-plugin in the background? it gets called twice if I define on my own -
i have tried lot of things, , seems project executes "maven-war-plugin" twice.
because of can't run optimizations merging classes single jar (using maven shade plugin).
i pretty sure appengine-maven-plugin calling maven-war-plugin create appengine packaging. know because tried removing own definitition of "maven-war-plugin" , it's still execute "magically". makes sense in way?
my pom.xml is:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.3</version> <executions> <execution> <phase>package</phase> <goals> <goal>war</goal> </goals> </execution> </executions> <configuration> <webresources> <!-- in order interpolate version pom appengine-web.xml --> <resource> <directory>${basedir}/src/main/webapp/web-inf</directory> <filtering>true</filtering> <excludes> <exclude>**/*.jar</exclude> </excludes> <targetpath>web-inf</targetpath> </resource> </webresources> </configuration> </plugin> <plugin> <groupid>com.google.appengine</groupid> <artifactid>appengine-maven-plugin</artifactid> <version>${appengine.target.version}</version> <configuration> <usejava7>true</usejava7> <address>0.0.0.0</address> <port>8080</port> <compileencoding>utf-8</compileencoding> <jvmflags> <jvmflag>-xx:-usesplitverifier</jvmflag> <jvmflag>-xms512m</jvmflag> <jvmflag>-xmx2048m</jvmflag> <jvmflag>-xx:newsize=256m</jvmflag> <jvmflag>-xx:maxnewsize=256m</jvmflag> <jvmflag>-xx:permsize=512m</jvmflag> <jvmflag>-xx:maxpermsize=768m</jvmflag> <jvmflag>-xdebug</jvmflag> <jvmflag>-agentlib:jdwp=transport=dt_socket,address=31337,server=y,suspend=n</jvmflag> </jvmflags> </configuration> </plugin>
it looks explicitly running war plugin twice, have execution declared in executions section plugin. appengine-maven-plugin declares package phase must have completed. doesn't care happens during packaging.
https://github.com/googlecloudplatform/appengine-guestbook-java/blob/master/pom.xml example of how this.
Comments
Post a Comment