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
Old Question, but I want to answer for completeness.
You can do this in one build step very simply with the war plugin with two executions. See the sample code below:
org.apache.maven.plugins
maven-war-plugin
build-context-one
install
war
context-one
true
src/main/webapp
**
your-context-one-directory
build-context-two
install
war
classifier-two
true
src/main/webapp
**
your-context-two-directory