title: Maven: Export jar with 3rd-party jars added to classpath in manifest
body: <p>I am developing a <em>Java maven project with Eclipse</em> and want to <strong>export a jar that includes all referenced libraries</strong>. These referenced libraries fall into one of these two categories:</p>
  
  <ol>
  <li><p>They are <em>explicit (or implicit)</em> <strong>dependencies in the <code>pom.xml</code></strong></p></li>
  <li><p>I have some <strong>libraries not available as maven artifacts</strong> and have put them in /lib (and added them to the build path in Eclipse)</p></li>
  </ol>
  
  <p>There's the <code>maven-assembly-plugin</code>, which works fine for 1). However, I'm unable to find a maven plugin that also includes non-maven-dependencies, e.g. <code>"all jars in /lib"</code>.</p>
  
  <p>Then there's the Eclipse <code>FatJar</code> plugin, which sort of works, but hasn't been updated since 2009, so it seems unmaintained. Also I prefer an export method that I can directly specify in the <code>pom.xml</code>.</p>
  
  <p>Can anyone point me to a <code>maven</code> plugin or the like to export <em>all referenced libraries</em>, including those from case 2) ? That only needs to involve putting them in the jar and referencing them in the manifest's classpath.</p>
  
  <p>Thanks!</p>