title: Maven: File does not get excluded from build
body: <p>I have a library maven module which has an application.conf file in /src/main/resources/ and I want to exclude it from the build in the pom of the module</p>
  
  <pre><code>    &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;application.conf&lt;/exclude&gt;
              &lt;/excludes&gt;
              &lt;filtering&gt;false&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
  </code></pre>
  
  <p>A maven module, which uses the above mentioned module, shall build a jar with all dependencies; I use the maven assembly plugin to build actually the jar.</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;!--&lt;descriptor&gt;src/assembly.xml&lt;/descriptor&gt;--&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;                    
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;assemble-all&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>The file application.conf is still there in the jar. What I am doing wrong here ?</p>