title: Add classpath to manifest with a custom assembly descriptor
body: <p>I have the following custom assembly:</p>
  
  <pre><code>&lt;assembly&gt;
      &lt;id&gt;full&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;jar&lt;/format&gt;
      &lt;/formats&gt;
      &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&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;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>And the following configuration section:</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;configuration&gt;
          &lt;descriptors&gt;
              &lt;descriptor&gt;src/main/assembly/assembly.xml&lt;/descriptor&gt;
          &lt;/descriptors&gt;
          &lt;archive&gt;
              &lt;manifest&gt;
                  &lt;mainClass&gt;com.example.MyExample&lt;/mainClass&gt;
                  &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                  &lt;classpathPrefix&gt;./lib/&lt;/classpathPrefix&gt;
              &lt;/manifest&gt;
          &lt;/archive&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&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>
  
  <p>According to the documentation on the maven assembly plugin, this should add a classpath item to the manifest file, however it does not work.  If I use the deprecated assembly goal instead of single, it does work.</p>
  
  <p>I noticed somewhere someone mentioned that the archive section is only available with the jar format, but that is what I'm using.</p>
  
  <p>When they deprecated assembly:assembly, did they define a new way of doing this correctly?  I really don't like using deprecated functionality, but if they break the way things worked and don't properly document it, I really don't know how to avoid this.</p>
  
  <p>Does anyone have any examples of how to do this properly?</p>