title: Maven copy src/main/resources/services folder to /META-INF
body: <p><strong>EDIT</strong></p>
  
  <p>Ok I can be now more specific:</p>
  
  <p>I have in my scr/main/resources a folder META-INF who contains <strong>services</strong>/javax.annotation.processing.Processor</p>
  
  <p>My pom is still the same (with  commented).
  If I do "mvn clean install", the output jar will contains only the META-INF folder.</p>
  
  <p>But if I rename the folder <strong>services</strong>, the output jar contains my classes and the META-INF folder with the new renamed folder and his content.</p>
  
  <hr>
  
  <p>I have - I suppose - a easy question for regular maven2 users.
  I have this simple pom for a simple subproject</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;aida&lt;/groupId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;artifactId&gt;aida-annotationProcessors&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;name&gt;AIDA Annotation Processors&lt;/name&gt;
  
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;    
              &lt;/plugin&gt;
          &lt;/plugins&gt;
  &lt;!--        &lt;resources&gt; --&gt;
  &lt;!--            &lt;resource&gt; --&gt;
  &lt;!--                &lt;directory&gt;src/main/resources/services&lt;/directory&gt; --&gt;
  &lt;!--                &lt;targetPath&gt;META-INF/services&lt;/targetPath&gt; --&gt;
  &lt;!--            &lt;/resource&gt; --&gt;
  &lt;!--        &lt;/resources&gt; --&gt;
      &lt;/build&gt;
  
      &lt;dependencies&gt;
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>My goal is simple:
  I just want to copy my src/main/resources/services/javax.annotation.processing.Processor file in the {root}/META-INF/services folder of my generated jar.</p>
  
  <p>But if I uncomment the resource part, my jar will contains only a META-INF folder without class!</p>
  
  <p>Could you help me?</p>