Hi, As you already saw, there's a special classloader to handle embedding jars into jars (which is in fact not standard).
There is (was?) a maven plugin called onejar-maven-plugin that would do exactly that. This is a variant (currently offline so I can't double-check) of the fatjar-maven-plugin. Cheers Le 13 juin 2013 05:51, "Kevin Krumwiede" <[email protected]> a écrit : > Oh, I forgot to mention: I set up my pom so the classpath of my main > jar includes lib/, so all my users have to do is unzip it and run the > main jar. > > On 6/12/13, Kevin Krumwiede <[email protected]> wrote: > > As Anders Hammar said, there is some classpath magic to the way > > Eclipse creates executable jars containing other jars. I wanted > > something like that, but instead I ended up creating an assembly that > > creates a zip file. The zip file contains my main executable jar, > > along with all the dependencies in a lib/ directory. Because I wanted > > the zip file to contain an artifact from a project that depends on my > > main jar, I had to separate the assembly pom from my main pom. Now I > > build my main project, build the artifact that depends on it, and then > > build the assembly. > > > > My files are here: > http://sourceforge.net/p/weapon-m/svn/HEAD/tree/trunk/ > > > > On 6/12/13, Wayne Fay <[email protected]> wrote: > >>> Wayne, I do the check and yes the dependency is inside the exec jar and > >>> yes inside that dependency I found the class AxisFault.class. > >> > >> In that case, I cannot explain the error you seem to have run into. > >> > >> Wayne > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
