title: maven variable property filtering
body: <p>I am trying to have some variable properties value and use Maven profile to get to the correct output. I've done this for my hibernate xml, log4j.properties and didnt have problem.</p>
  
  <p>So it worked for me in project#1 where I have bunch of files under /src/main/resources. And I set up properties and resource filtering in maven as follow:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;properties&gt;
      &lt;log.level&gt;DEBUG&lt;/log.level&gt;
  &lt;/properties&gt;
  
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;production&lt;/id&gt;
          &lt;properties&gt;
      &lt;log.level&gt;INFO&lt;/log.level&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;build&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;/build&gt;
  </code></pre>
  
  <p>The above worked with no problem.
  However, in my Project#2 - I have some files that have variable properties, but they are under /src/main/webapp/WEB-INF - I do the same as above, except for the directory to point to the WEB-INF and it does not work. I tried on project #2 for the file to go under /src/main/resources and it worked.</p>
  
  <p>So seems to me resource filtering have problem when the file is under /src/main/webapp/WEB-INF but I need the file to be there so it goes to the WEB-INF folder when the war is generated.</p>
  
  <p>Does anyone have a pointer as to how to do this?</p>
  
  <p>Here's the following snipet from the pom.xml that doesnt work (the resource filtering is completely ignored)
  </p>
  
  <pre><code>&lt;properties&gt;
          &lt;wsdl.url&gt;http://stage/wsdl-url&lt;/wsdl.url&gt;
  &lt;/properties&gt;
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;production&lt;/id&gt;
          &lt;properties&gt;
      &lt;wsdl.url&gt;http://prod/wsdl-url&lt;/wsdl.url&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;build&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/webapp/WEB-INF&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
  &lt;/build&gt;
  </code></pre>