title: maven-jar-plugin includes vs excludes
body: <p>I've got an existing pom file that includes a maven-jar-plugin section. It runs for the test-jar goal and is currently excluding a few directories:</p>
  
  <pre><code>&lt;excludes&gt;
       &lt;exclude&gt;...&lt;/exclude&gt;
       &lt;exclude&gt;...&lt;/exclude&gt;
       &lt;exclude&gt;somedir/**&lt;/exclude&gt;
   &lt;/excludes&gt;
  </code></pre>
  
  <p>I need to include a file in the somedir directory but leave out the rest of the files in the somedir directory. I've read that includes have precedence over excludes so I added something like the following (there was no includes section before):</p>
  
  <pre><code>&lt;includes&gt;
      &lt;include&gt;somedir/somefile.xml&lt;/include&gt;
  &lt;/includes&gt;
  </code></pre>
  
  <p>This ends up creating a jar file for test with only a few files in it (just the stuff in META-INF). The file that I included is not in the jar either. What I'd expect is a jar that is identical to the jar that was created before my includes change with the one additional file.</p>
  
  <p>What am I missing here?</p>