title: Build WAR only once during mvn clean package
body: <p>I have a maven project that should build war file. When I run <code>mvn clean package</code> I see in log that at first it makes default-war:  </p>
  
  <pre><code>--- maven-war-plugin:2.3:war (default-war) @ my-artifact---
   Packaging webapp
  </code></pre>
  
  <p>And after that it makes the war:  </p>
  
  <pre><code>--- maven-war-plugin:2.3:war (war) @ my-artifact---
   Packaging webapp
  </code></pre>
  
  <p>My pom.xml looks like: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.my.group&lt;/groupId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;artifactId&gt;my-artifact&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;dependencies&gt;
          &lt;...&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&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.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;/manifest&gt;
                          &lt;manifestEntries&gt;
                              &lt;Implementation-Build&gt;${project.artifactId}-${project.version}&lt;/Implementation-Build&gt;
                              &lt;Build-Time&gt;${timestamp}&lt;/Build-Time&gt;
                              &lt;Implementation-Revision&gt;${myapp.revision}&lt;/Implementation-Revision&gt;
                              &lt;Implementation-CommittedRevision&gt;${myapp.committedRevision}&lt;/Implementation-CommittedRevision&gt;
                              &lt;Implementation-CommittedDate&gt;${myapp.committedDate}&lt;/Implementation-CommittedDate&gt;
                          &lt;/manifestEntries&gt;
                      &lt;/archive&gt;
                      &lt;webXml&gt;src/main/webapp/WEB-INF/web.xml&lt;/webXml&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;war&lt;/id&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;war&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>So what I want is to disable building of default-war.</p>