title: Maven unpack war in destination folder
body: <p>I use Maven to create WAR of my JEE Application.</p>
  
  <p>Here my pom.xml </p>
  
  <pre><code>&lt;finalName&gt;myproject&lt;/finalName&gt;
  &lt;sourceDirectory&gt;${basedir}/src&lt;/sourceDirectory&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.5&lt;/version&gt;
      &lt;configuration&gt;
          &lt;warSourceDirectory&gt;WebContent&lt;/warSourceDirectory&gt;
          &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
          &lt;outputDirectory&gt;/var/www/myproject/webapp&lt;/outputDirectory&gt;
      &lt;/configuration&gt;    
    &lt;/plugin&gt;
  
    &lt;plugin&gt;
       &lt;inherited&gt;true&lt;/inherited&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.2&lt;/version&gt;
      &lt;configuration&gt;
        &lt;source&gt;1.8&lt;/source&gt;
        &lt;target&gt;1.8&lt;/target&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt; 
  </code></pre>
  
  <p>The generated WAR is copied in output folder defined in pom.xml (/var/www/myproject/webapp) but then i want to unpack it before launch my server (Tomcat).</p>
  
  <p>How can i do?</p>
  
  <p>Thanks,
  Lorenzo</p>