title: maven-war-plugin copying overriden directory to final artifact
body: <p>We're using <code>maven-3.3.9</code> with maven-war-plugin to generate my final war. We were having problems with out static files when they were changed because browser was using the cached version.</p>
  
  <p>So we decided not to use query string version attribute after referecing those static files. Our choice was to generate our static files directories overriden the way the maven-war-plugin states in <a href="http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html" rel="nofollow noreferrer">Adding and Filtering External Web Resources</a> docs, section <strong>Overriding the default destination directory</strong>.</p>
  
  <p>Here's how we done it:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;warSourceDirectory&gt;src/main/webapp&lt;/warSourceDirectory&gt;
          &lt;webResources&gt;
              &lt;webResource&gt;
                  &lt;directory&gt;src/main/webapp/WEB-INF/resources&lt;/directory&gt;
                  &lt;targetPath&gt;WEB-INF/resources/${parsedVersion.majorVersion}${parsedVersion.minorVersion}${parsedVersion.incrementalVersion}${buildNumber}&lt;/targetPath&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;/webResource&gt;
          &lt;/webResources&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>We're also using another plugins to get the project version parsed and number revision also, but they're not important to this question.</p>
  
  <p>The problem is that the static files directories are created correctly as we expected but its contents are also created in the regular way like we're not using <code>webResources</code> instructions, so I get my resources contents dir twice. I get resources dir with the dir I want and all dirs inside of this second dir are also in resources dir as sibblings of it. How can I generate the resource dir as it is doing now and not duplicating its contents?</p>
  
  <p>My final output is something like below:</p>
  
  <pre><code>|--- resources
      |--- js
      |--- css
      |--- fonts
      |--- js
      |--- myoverridendir
          |--- js
          |--- css
          |--- fonts
          |--- js
  </code></pre>