title: Selective copying maven resources
body: <p>I have a Java application build under maven. It contains two properties files - application.default.properties and application.properties. The second one suppose to supplement and/or overwrite some properties. I do have also logback.xml file in the same src/main/resources directory.
  I want to keep logging and default properties in the jar file but move application.properies to the root of the tree. I put the following piece into the build section of my pom.xml</p>
  
  <pre><code>    &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;targetPath&gt;${user.dir}&lt;/targetPath&gt;
              &lt;filtering&gt;false&lt;/filtering&gt;
              &lt;includes&gt;
                  &lt;include&gt;application.properties&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/resource&gt;
      &lt;/resources&gt; 
  </code></pre>
  
  <p>It does copy the application.properties file as expected, but other two files disappeared from the jar file.
  Can someone please tell me what I am doing wrong and how to alleviate the problem.
  P.S. I did browse maven documentation but couldn't find the answer there, so please do not tell me RTFM, but if it is there provide a pointer to it.</p>