title: How do I get Maven 2 to build 2 separate WAR files
body: <p>When doing a <code>mvn install</code> I want to end up with 2 WAR files in my target directory. One will contain the <strong>production</strong> <code>web.xml</code> and the other will contain the <strong>test/uat</strong> <code>web.xml</code>.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>&lt;build&gt;
      &lt;finalName&gt;cas-server&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1-beta-1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;webXml&gt;src/main/config/prod/web.xml&lt;/webXml&gt;
                  &lt;warName&gt;cas-prod&lt;/warName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1-beta-1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;webXml&gt;src/main/config/test/web.xml&lt;/webXml&gt;
                  &lt;warName&gt;cas-test&lt;/warName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>But I only end up with the test WAR.</p>