> I don't think that you can embed the dependent jars with the jar. IIRC the
> spec doesn't allow that. But you can shade the classes from the dependent
> jars to make one uber-jar.

As Anders stated, the standard class loader in the Sun JVM does not
have any ability to load a jar file contained within another jar file.
There are alternative class loaders available that do allow this (eg
ClassWorlds), but the easiest approach is to simply use the shade
plugin or assembly plugin to embed the classes from your dependency
jars into your own jar/artifact.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to