title: yuicompressor maven plugin and maven-war-plugin
body: <p>I've been struggling with getting this plugin to play nicely with the maven-war-plugin for a couple of hours now and I thought it was time to ask for help. I have the plugin defined as follows:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
      &lt;artifactId&gt;yuicompressor-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.3.0&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;compressyui&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;compress&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;nosuffix&gt;true&lt;/nosuffix&gt;
                  &lt;warSourceDirectory&gt;${basedir}/WebContent&lt;/warSourceDirectory&gt;
                  &lt;jswarn&gt;false&lt;/jswarn&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>If I remove nosuffix=true then I can see the compressed/minified -min.js files get into the war as expected, but with this flag on they are being overwritten by the maven-war-plugin (I'm assuming) when it builds the war file. I really need the file names to remain the same though ... does anyone have an idea of what I need to change in order to use the same filenames and still get the minified versions into the final war?</p>