The JarJar Plugin for Maven provides mojos to repackage dependencies inside a project artifact to avoid classpath conflicts. It uses code from the official JarJar project.


Jar Jar Links is a utility that makes it easy to repackage Java libraries and embed them into your own distribution. This is useful for two reasons:

  • You can easily ship a single jar file with no external dependencies.
  • You can avoid problems where your library depends on a specific version of a library, which may conflict with the dependencies of another library.



This example is taken from the sisu-guice project, which embeds ASM and CGLIB.