title: Maven resource filtering not working from 'resources' folder
body: <p>I am having some trouble with Maven's resource filtering. The directory structure is:</p>
  
  <pre><code>src
   |-main
      |-filters
      |-java
      |-resources
      |-webapp
  </code></pre>
  
  <p>The POM contains the following:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;filters&gt;
          &lt;filter&gt;src/main/filters/${environment}/filter.properties&lt;/filter&gt;
      &lt;/filters&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.6&lt;/version&gt;
          &lt;configuration&gt;
                  &lt;filteringDeploymentDescriptors&gt;true&lt;/filteringDeploymentDescriptors&gt;
                  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  
      ...
  
  &lt;/build&gt;
  </code></pre>
  
  <p>I am using NetBeans with '<em>Copy static resources on save</em>' but it will only copy the resources if <code>filtering</code> is set to <code>false</code>. This is forcing me to do a build each time I change a file in the <code>resources</code> folder rather than just saving the changed file. </p>
  
  <p>Running <code>mvn resources:resources</code> gives the following output:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]
  [INFO]     ------------------------------------------------------------------------
  [INFO] Building core 1.0
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] --- maven-resources-plugin:2.6:resources (default-cli) @ core ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 77 resources
  [INFO] Copying 31 resources
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.618 s
  [INFO] Finished at: 2015-07-22T21:24:32+01:00
  [INFO] Final Memory: 9M/155M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>but when I look in the target folder a modified <code>struts.xml</code> file is not updated. I have never used <code>mvn resources:resources</code> before so maybe I have the wrong idea about it. Should it not copy the files from <code>src/main/resources</code> to <code>target/[FOLDER]/WEB-INF/classes</code>?</p>
  
  <p>Does anyone have a solution?</p>