title: how should be pom.xml to filter resources on WEB-INF?
body: <p>I am working on a Maven project. After making some changes on the pom.xml file, I compile it succesfully and when I deploy it in the jboss the deployment fails.
  Before I made the changes, I was able to deploy it.</p>
  
  <p>I have ENV profile defined. This is part of my pom.xml file:</p>
  
  <pre><code>&lt;plugins&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;filters&gt;
                  &lt;filter&gt;src/main/filters/filter-${env}.properties&lt;/filter&gt;
              &lt;/filters&gt;
              &lt;webResources&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;WebContent/WEB-INF&lt;/directory&gt;
                      &lt;filtering&gt;true&lt;/filtering&gt;
                      &lt;targetPath&gt;WEB-INF&lt;/targetPath&gt;
                  &lt;/resource&gt;
                  &lt;resource&gt;
                      &lt;directory&gt;WebContent/WEB-INF&lt;/directory&gt;
                  &lt;/resource&gt;
              &lt;/webResources&gt;
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Am I doing something wrong with the pom.xml file?</p>