title: maven sources plugin includes configuration
body: <p>I have a maven project with a non standard configuration:</p>
  
  <pre><code>$&gt; tree                                                                                          
  .
  ├── pom.xml
  ├── symbolic-link-to-sources -&gt; ../src
  └── target
      ├── maven-archiver
      │   └── pom.properties
      ├── project-1.0-SNAPSHOT-sources.jar
      ├── project-1.0-SNAPSHOT.jar
      └── surefire
  </code></pre>
  
  <p>I am trying to generate the sources jar of this maven module, whose sources are in ../src. I created a symbolic link to ../src in the case the plugin does not accept parent folders in paths. To do so I use the maven source plugin configured like this:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.2.1&lt;/version&gt;
    &lt;configuration&gt;
      &lt;includePom&gt;true&lt;/includePom&gt;
      &lt;includes&gt;
        &lt;include&gt;symbolic-link-to-sources/**&lt;/include&gt;
      &lt;/includes&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I run this plugin with <code>mvn source:jar</code>. Unfortunately I get only pom.xml in my sources jar. If I set includePom to false the plugin does not create the source archive.</p>
  
  <p>I tried a lot of things as <code>&lt;include&gt;</code>: <code>../src</code>, <code>../src/**</code>, <code>../**</code>, <code>symbolic-link-to-sources</code>, <code>symbolic-link-to-sources/**</code>, <code>../**/*.java</code> none of them get me my sources into my sources jar. Although the <a href="http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html#includes" rel="nofollow">documentation</a> about it say its a relative fileset pattern.</p>
  
  <p>Any idea how to get the content the java files of the ../src folder into my sources jar?</p>
  
  <p>(Yes my symbolic link is not broken, no there is no way to rearrange my modules to have a standard folder hierarchy, this is a wrapper project around an ant based project).</p>