title: Apache Maven Resources Plugin exclude a directory
body: <p>I'm trying to copy some resources from one point to an other during the build process. Therefore I use the Apache Maven Resources Plugin. Actually I exclude some files, I don't need. But I want also to exclude a directory. I tried serveral ways but it didn't work.</p>
  
  <pre><code>&lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.5&lt;/version&gt;
  &lt;executions&gt;
      &lt;execution&gt;
          &lt;id&gt;copy-client-product&lt;/id&gt;
          &lt;phase&gt;verify&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;copy-resources&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;outputDirectory&gt;${basedir}/target/pro/client&lt;/outputDirectory&gt;
              &lt;resources&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;target\products\client\win32\win32\x86\&lt;/directory&gt;
                      &lt;excludes&gt;
                          &lt;exclude&gt;p2&lt;/exclude&gt;
                          &lt;exclude&gt;eclipsec.exe&lt;/exclude&gt;
                      &lt;/excludes&gt;
                  &lt;/resource&gt;
              &lt;/resources&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  </code></pre>
  
  <p>In this example I tried to exclude the folder "p2".</p>
  
  <pre><code>&lt;exclude&gt;*/p2/**&lt;/exclude&gt;
  &lt;exclude&gt;p2/**&lt;/exclude&gt;
  &lt;exclude&gt;**/p2&lt;/exclude&gt;
  </code></pre>
  
  <p>Also don't work.</p>