title: Maven assembly - Error reading assemblies
body: <p>I have defined a personalized jar-with-dependencies assembly descriptor. However, when I execute it with mvn assembly:assembly, I get :</p>
  
  <pre><code>...
  [INFO] META-INF/ already added, skipping
  [INFO] META-INF/MANIFEST.MF already added, skipping
  [INFO] javax/ already added, skipping
  [INFO] META-INF/ already added, skipping
  [INFO] META-INF/MANIFEST.MF already added, skipping
  [INFO] META-INF/maven/ already added, skipping
  [INFO] [assembly:assembly {execution: default-cli}]
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error reading assemblies: No assembly descriptors found.
  </code></pre>
  
  <p>My <strong>jar-with-dependencies.xml</strong> is in <strong>src/main/resources/assemblies/</strong>.</p>
  
  <p>My assembly descriptor is the following :</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;assembly&gt;
      &lt;id&gt;jar-with-dependencies&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;jar&lt;/format&gt;
      &lt;/formats&gt;
  
      &lt;dependencySets&gt;
          &lt;dependencySet&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;unpack&gt;true&lt;/unpack&gt;
              &lt;unpackOptions&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/LICENSE*&lt;/exclude&gt;
                      &lt;exclude&gt;**/README*&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/unpackOptions&gt;
          &lt;/dependencySet&gt;
      &lt;/dependencySets&gt;
  
      &lt;fileSets&gt;
          &lt;fileSet&gt;
              &lt;directory&gt;${project.build.outputDirectory}&lt;/directory&gt;
              &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
          &lt;/fileSet&gt;
          &lt;fileSet&gt;
              &lt;directory&gt;src/main/resources/META-INF/services&lt;/directory&gt;
              &lt;outputDirectory&gt;META-INF/services&lt;/outputDirectory&gt;
          &lt;/fileSet&gt;
      &lt;/fileSets&gt;
  
  &lt;/assembly&gt;
  </code></pre>
  
  <p>And my project pom.xml is :</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.2-beta-5&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;jar-with-dependencies&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;single&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;descriptors&gt;
                      &lt;descriptor&gt;jar-with-dependencies.xml&lt;/descriptor&gt;
                  &lt;/descriptors&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;org.my.app.HowTo&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When mvn assembly:assembly is performed, dependencies are unpacked and I get the previous error when unpack has finished.</p>
  
  <p>Moreover, if I execute mvn -e assembly:assembly it is say that no descriptors has been found, however it try to unpack dependencies and a JAR with dependencies is created but it doesn't contain META-INF/services/* as specified in descriptor :</p>
  
  <pre><code>[ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error reading assemblies: No assembly descriptors found.
  
  [INFO] ------------------------------------------------------------------------
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: Error reading assemblies: No assembly descriptors found.
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading assemblies: No assembly descriptors found.
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:356)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      ... 17 more
  Caused by: org.apache.maven.plugin.assembly.io.AssemblyReadException: No assembly descriptors found.
      at org.apache.maven.plugin.assembly.io.DefaultAssemblyReader.readAssemblies(DefaultAssemblyReader.java:206)
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:352)
      ... 19 more
  </code></pre>
  
  <p>I don't see my error. Does someone has a solution ?</p>