title: Creating an archive of all jars and source jars for a multi-module project
body: <p>I'm building a Maven project which has half a dozen modules.</p>
  
  <p>I'm fine with importing it myself using either Maven or Ivy, but other teams would like to use those jars as well, but their practice is to commit the jars and source jars to version control.</p>
  
  <p>I'd like to generate a zip/tar assembly of all modules and their sources which they can use however they like.</p>
  
  <p>I've read <a href="http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html" rel="noreferrer">Maven Assembly Plugin: Including Module Binaries</a> but I'm shy of using it because:</p>
  
  <ol>
  <li>The <a href="http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/faq.html#module-binaries" rel="noreferrer">linked FAQ entry</a> returns a 404;</li>
  <li>I need to manually specify all modules.</li>
  </ol>
  
  <p>Is there an alternative?</p>
  
  <hr>
  
  <p><em>Update</em>: I've tried using the built-in assembly descriptors</p>
  
  <pre><code> mvn assembly:assembly -DprojectModulesOnly=true
   mvn assembly:assembly
  </code></pre>
  
  <p>and both failed with</p>
  
  <pre><code>[INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Failed to create assembly: Error creating assembly archive bin: You must set at least one file.
  </code></pre>
  
  <p>right after all the module builds have run.</p>