title: maven2: excluding directory from WAR
body: <p>I tried <a href="http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html" rel="noreferrer">this</a> to exclude whole directory (${basedir}/src/main/webapp/webscripts) from my WAR file but it failed. What is wrong?</p>
  
  <p>this doesn't work:</p>
  
  <pre><code>&lt;configuration&gt;
     &lt;webResources&gt;
        &lt;resource&gt;
         &lt;directory&gt;${basedir}/src/main/webapp/webscripts&lt;/directory&gt;
         &lt;excludes&gt;
          &lt;exclude&gt;**/*.*&lt;/exclude&gt;
         &lt;/excludes&gt;
        &lt;/resource&gt;
     &lt;/webResources&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>this too:</p>
  
  <pre><code>&lt;configuration&gt;
     &lt;webResources&gt;
        &lt;resource&gt;
         &lt;directory&gt;${basedir}/src/main/webapp&lt;/directory&gt;
         &lt;excludes&gt;
          &lt;exclude&gt;**/webscripts&lt;/exclude&gt;
         &lt;/excludes&gt;
        &lt;/resource&gt;
     &lt;/webResources&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Can anybody help?</p>