title: How to get Maven to run war:exploded but not war:war
body: <p>I have a Maven pom that uses <code>&lt;packaging&gt;war&lt;/packaging&gt;</code>.  But actually, I don't want build the war-file, I just want all the dependent jars collected and a full deployment directory created.</p>
  
  <p>So I'm running the <code>war:exploded</code> goal to generate the deploy directory:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;webappDirectory&gt;target/${env}/deploy&lt;/webappDirectory&gt;
                  &lt;archiveClasses&gt;true&lt;/archiveClasses&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;exploded&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The trouble is, the war file still gets built.  Is there a simple way of having <code>&lt;packaging&gt;war&lt;/packaging&gt;</code> execute the <code>war:exploded</code> goal instead of the war:war goal?</p>
  
  <p>Or is there another simple way to do this?</p>