title: Maven Error reading assemblies: No assembly descriptors found
body: <p>Following <a href="http://www.openimaj.org/tutorial/getting-started-with-openimaj-using-maven.html" rel="noreferrer"><strong>this Guide</strong></a> I ran the command</p>
  
  <pre><code>mvn assembly:assembly
  </code></pre>
  
  <p>and got the <code>Build Failure</code> of </p>
  
  <pre><code>Error reading assemblies: No assembly descriptors found.
  </code></pre>
  
  <p>I've looked at numerous questions on this, but to no avail.</p>
  
  <p>From <a href="https://stackoverflow.com/questions/2463721/maven-assembly-error-reading-assemblies"><strong>this post</strong></a>, I created a <code>.xml</code> with this inside:</p>
  
  <pre><code>&lt;assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"&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;${project.build.outputDirectory}&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 included this in the <code>pom.xml</code>:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.2-beta-5&lt;/version&gt;
      &lt;configuration&gt;
        &lt;descriptors&gt;
          &lt;descriptor&gt;jar-with-dependencies.xml&lt;/descriptor&gt;
          &lt;/descriptors&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>but still no luck.</p>
  
  <p>I'm pretty new to this as you can probably tell, how can I get this running?</p>
  
  <p><strong>~~EDIT~~</strong></p>
  
  <p>In the <code>pom.xml</code> I changed</p>
  
  <pre><code>&lt;descriptor&gt;jar-with-dependencies.xml&lt;/descriptor&gt;
  </code></pre>
  
  <p>To</p>
  
  <pre><code>&lt;descriptor&gt;src/main/assembly/jar-with-dependencies.xml&lt;/descriptor&gt;
  </code></pre>
  
  <p><strong>~~EDIT 2~~</strong></p>
  
  <p><code>pom.xml</code> now contains this:</p>
  
  <pre><code>&lt;plugin&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;make-assembly&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;src/main/assembly/jar-with-dependencies.xml&lt;/descriptor&gt;
          &lt;/descriptors&gt;
          &lt;/configuration&gt;
          &lt;/execution&gt;
          &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>~~EDIT 3~~</strong></p>
  
  <p>This <code>pom.xml</code> now works for me:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.2-beta-5&lt;/version&gt;
      &lt;configuration&gt;
          &lt;descriptors&gt;
              &lt;descriptor&gt;src/main/assembly/jar-with-dependencies.xml&lt;/descriptor&gt;
          &lt;/descriptors&gt;
          &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
          &lt;id&gt;make-assembly&lt;/id&gt;
          &lt;phase&gt;package&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;single&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>