When doing a mvn install
I want to end up with 2 WAR files in my target directory. One will contain the production web.xml
and the
You can tell the Maven Assembly plugin to simply generate two assemblies. You just write an assembly descriptor file for each output you wish to create and list them in the plugin config.
For example I'm using it to generate a WAR file and a TGZ file, but there's no reason you can't do two WARs in the same way. mvn package will then generate both files.
maven-assembly-plugin
2.3
src/main/assembly/assembly-war.xml
src/main/assembly/assembly-dist.xml
dist-assembly
package
single