title: Web resources filtering with Maven war plugin does not work in Eclipse with m2e
body: <p>I'm trying to filter a  Spring configuration file using Maven filtering.  My POM is configured like this:</p>
  
  <pre><code>        ...
          &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.2&lt;/version&gt;
            &lt;configuration&gt;
              &lt;webResources&gt;
                &lt;resource&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;targetPath&gt;WEB-INF/context&lt;/targetPath&gt;
                  &lt;directory&gt;src/main/webapp/WEB-INF/context&lt;/directory&gt;
                  &lt;includes&gt;
                    &lt;include&gt;applicationContext.xml&lt;/include&gt;
                  &lt;/includes&gt;
                &lt;/resource&gt;
              &lt;/webResources&gt;
            &lt;/configuration&gt;
          &lt;/plugin&gt;
          ...
  </code></pre>
  
  <p>and</p>
  
  <pre><code>  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;desarrollo&lt;/id&gt;
           &lt;activation&gt;
            &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;filters&gt;
                &lt;filter&gt;src/main/properties/dev.properties&lt;/filter&gt;
              &lt;/filters&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;pruebas&lt;/id&gt;
          &lt;build&gt;
              &lt;filters&gt;
                &lt;filter&gt;src/main/properties/test.properties&lt;/filter&gt;
              &lt;/filters&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
              ...
  </code></pre>
  
  <p>It works great when invoking Maven directly. </p>
  
  <p>Unfortunately, when hot-deploying the webapp in Tomcat 6 with Eclipse WTP and m2e it always picks the unfiltered version of applicationContext.xml. (The file applicationContext.xml in the folder target/m2e-wtp/web-resources/WEB-INF/context is never filtered)</p>
  
  <p>I can't find any useful documentation on the subject. I'm not even sure if it is implemented in m2e.</p>
  
  <p>Is something wrong with my configuration or this is an unimplemented feature?</p>