title: Maven resource files, put java class files and property files in same directory
body: <p>I have java class files and property files in the same directory.</p>
  
  <p>src/main/java/com/berlin/Test.class</p>
  
  <p>src/main/java/com/berlin/Test.properties</p>
  
  <p>With the maven jar I build and the maven target, I want these to appear in the same directory.  but maven is placing the class files and property files in different places when I do 'mvn package'.</p>
  
  <p>.. Output:
  jar -tvf file.jar:</p>
  
  <p>Sat Jun 11 08:24:32 EDT 2011 main/java/com/berlin/Test.properties</p>
  
  <p>I want:
  Sat Jun 11 08:24:32 EDT 2011 com/berlin/Test.properties
  Sat Jun 11 08:24:32 EDT 2011 com/berlin/Test.class</p>
  
  <p>...</p>
  
  <p>Part of my pom:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;testSourceDirectory&gt;test&lt;/testSourceDirectory&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**&lt;/include&gt;
                  &lt;/includes&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*.java&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
  &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;${java.source.version}&lt;/source&gt;
                      &lt;target&gt;${java.target.version}&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;           
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;skipTests&gt;true&lt;/skipTests&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;            
          &lt;/plugins&gt;
  </code></pre>