title: Maven Resources Not Copying Files
body: <p>I want to use maven for replacing some of my *.properties files in my war file.</p>
  
  <p>Therefore I created folders dev, test and prod in my resources folder. Now I only want to have one of these folders used in the resources folder path in my war file when executing the corresponding profile. The result is that maven is copying all other folders as well so those are double in the classpath. Here is my configuration:</p>
  
  <pre><code>&lt;profile&gt;
          &lt;id&gt;dev&lt;/id&gt;
  
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
  
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.3&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;copy-dev-resources&lt;/id&gt;
                              &lt;phase&gt;process-resources&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;copy-resources&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
  
                                  &lt;overwrite&gt;true&lt;/overwrite&gt;
  
                                  &lt;outputDirectory&gt;${basedir}/target/classes&lt;/outputDirectory&gt;
                                  &lt;resources&gt;
                                      &lt;resource&gt;
                                          &lt;!-- source --&gt;
                                          &lt;directory&gt;src/main/resources/dev&lt;/directory&gt;
                                      &lt;/resource&gt;
                                  &lt;/resources&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p>How do I configure Maven now that its only copying the contents of folder src/main/resources/dev to target/classes?</p>
  
  <p>Thank you for you help</p>