I'd use the maven-shade-plugin because a) it's a maven-core-plugin and as such it's pretty well maintained b) it can also 'shade' concurring jars into different packages if there are some dependency problems.
LieGrue, strub --- On Tue, 10/13/09, Albert Kurucz <albert.kur...@gmail.com> wrote: > From: Albert Kurucz <albert.kur...@gmail.com> > Subject: Re: Running Jar file created by Maven > To: "Maven Users List" <users@maven.apache.org> > Date: Tuesday, October 13, 2009, 5:40 PM > Always nice to have choices. > Now, which one is better, the onejar-maven-plugin or > fatjar? > > On Tue, Oct 13, 2009 at 7:15 AM, Stevo Slavić <ssla...@gmail.com> > wrote: > > http://code.google.com/p/onejar-maven-plugin/ > > > > http://anydoby.com/fatjar/ > > > > Regards, > > Stevo. > > > > On Tue, Oct 13, 2009 at 2:03 PM, Marcin Kwapisz > > <mkwap...@zsk.p.lodz.pl>wrote: > > > >> > but if I try to build it from the command > prompt using mvn > >> > install, > >> > it build the whole staff, but when I try to > run the jar file, it just > >> > fails > >> > becuase it cannot find the library files > (dependencies), looks like > >> > maven > >> > doesn't add those files, although it > downloads them... > >> > >> [Marcin Kwapisz] > >> Maven does not pack jar into jar. You can use > assembly plugin to do that > >> (as Eric Lewis wrote), but you can also use > dependency plugin to copy > >> dependencies (needed libraries) to you Target > directory (or directory where > >> your main jar is located). > >> > >> Regards > >> Marcin Kwapisz > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org