title: Maven including unfiltered resource file in jar rather than what is in target/classes
body: <p>Given, </p>
  
  <p>Apache Maven 3.0.3 and a src/main/resources/application.properties file with</p>
  
  <pre><code> project.root=${basedir}
  </code></pre>
  
  <p>and a pom.xml file with</p>
  
  <pre><code>&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;
  ...
  </code></pre>
  
  <p>When I run "mvn clean package", I get a target/classes/application.properties file with filtering </p>
  
  <pre><code>project.root=/path/to/MyProject
  </code></pre>
  
  <p>However, the application.properties file that is included in the jar <strong>has not been filtered.</strong></p>
  
  <pre><code>project.root=${basedir}
  </code></pre>
  
  <p>Why is the application.properties file that is included in the jar not filtered? According to the <a href="http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files" rel="nofollow">documentation</a>, the filtered properties file(s) from target/classes ought to be included in the jar.</p>