title: exclude folders in maven generated war
body: <p>I've a Java web project, in which I'm using a lot of scss files. All these files are inside /WebContent/scss and compiled to WebContent/css.</p>
  
  <p>I am creating the war using maven-war plugin, and I'd like to exclude this folder (and many other folders) from the generated war.
  I've tried using packagingExcludes, but wothout any success until now. Probably there's some misconfiguration I'm not aware of.</p>
  
  <p>This is my pom.xml (in the section related to the maven-war plugin).</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;warSourceDirectory&gt;WebContent&lt;/warSourceDirectory&gt;
                  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;packagingExcludes&gt;sccs/**&lt;/packagingExcludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>