title: How to filter specific file with maven resource filtering
body: <p>My spring+maven project has .properties and .xml resource files. I want to set up filtering for .properties only excluding all spring xml configs. This is pretty straightforward thing:</p>
  
  <pre><code>    &lt;resource&gt;
          &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt;
          &lt;excludes&gt;
              &lt;exclude&gt;**/*.properties&lt;/exclude&gt;
          &lt;/excludes&gt;
      &lt;/resource&gt;
      &lt;resource&gt;
          &lt;filtering&gt;false&lt;/filtering&gt;
          &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt;
          &lt;includes&gt;
              &lt;include&gt;**/*.xml&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/resource&gt;
  </code></pre>
  
  <p>But now I want to apply filter to one concrete xml file, say env-config.xml. So the problem is how to apply filters to all .properties files and only one specific xml file?</p>