title: Maven2 AAR Eclipse plugin not adding services.xml to aar
body: <p>Maven gurus, please help a newbie here:</p>
  
  <p>My POM looks like this:</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;org.pidac.webservices&lt;/groupId&gt;
    &lt;artifactId&gt;axis2test&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;Axis2-test&lt;/name&gt;
  
     &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
                  &lt;artifactId&gt;axis2-aar-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.6.2&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;axis2-aar:aar&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;                             
                              &lt;fileSets&gt;
                                  &lt;fileSet&gt;
                                       &lt;directory&gt;${project.build.directory}/aar&lt;/directory&gt;
                                       &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
                                  &lt;/fileSet&gt;
                                  &lt;fileSet&gt;
                                      &lt;directory&gt;$(basedir)/src/main/webapp/META-INF&lt;/directory&gt;
                                      &lt;outputDirectory&gt;META-INF&lt;/outputDirectory&gt;
                                  &lt;/fileSet&gt;                                  
                              &lt;/fileSets&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
  
      &lt;/pluginManagement&gt;
     &lt;/build&gt;   
  &lt;/project&gt;
  </code></pre>
  
  <p>My folder structure looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/zcVz2.png" alt="enter image description here"></p>
  
  <p>My Debug Configuration has the following list of goals:  </p>
  
  <blockquote>
    <p>clean install axis2-aar:aar</p>
  </blockquote>
  
  <p>From Eclipse, when I run a Maven Build from the Debug As context menu, the comes up when right clicking on the project, I get the aar into my target folder as indicated by the output below:</p>
  
  <pre><code>DEBUG] Exploding aar...
  [DEBUG] Assembling aar axis2test in C:\Users\nji\workspace\axis2test\target\aar
  [INFO] Generating aar C:\Users\nji\workspace\axis2test\target\axis2test-0.0.1-SNAPSHOT.aar
  [INFO] Building jar: C:\Users\nji\workspace\axis2test\target\axis2test-0.0.1-SNAPSHOT.aar
  [DEBUG] adding directory META-INF/
  [DEBUG] adding entry META-INF/MANIFEST.MF
  [DEBUG] adding directory com/
  [DEBUG] adding directory com/pidac/
  [DEBUG] adding directory com/pidac/axis2test/
  [DEBUG] adding directory com/pidac/axis2test/api/
  [DEBUG] adding directory com/pidac/axis2test/lib/
  [DEBUG] adding entry com/pidac/axis2test/api/Hello.class
  [DEBUG] adding entry com/pidac/axis2test/api/Weather.class
  [DEBUG] adding entry com/pidac/axis2test/lib/HelloImpl.class
  [DEBUG] adding entry com/pidac/axis2test/lib/WeatherService.class
  [DEBUG] adding directory META-INF/maven/
  [DEBUG] adding directory META-INF/maven/org.pidac.webservices/
  [DEBUG] adding directory META-INF/maven/org.pidac.webservices/axis2test/
  [DEBUG] adding entry META-INF/maven/org.pidac.webservices/axis2test/pom.xml
  [DEBUG] adding entry META-INF/maven/org.pidac.webservices/axis2test/pom.properties
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>However, when I manually explode this AAR using 7-Zip, services.xml is not found anywhere.<br>
  The docs here <a href="http://axis.apache.org/axis2/java/core/tools/maven-plugins/maven-aar-plugin.html" rel="nofollow noreferrer">Maven2 AAR Plug-in Guide</a> says </p>
  
  <blockquote>
    <p>Location of the services.xml file. By default, it is assumed that the
    file is already present in classesDirectory/META-INF and no special
    processing is required</p>
  </blockquote>
  
  <p>but when I look at the classesDirectory after the build is complete, there is no META-INF folder.  </p>
  
  <p>What am I missing?</p>