In maven 2 you can create an all-in-one jar with the assembly plugin
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

Arnaud


On 11/09/2007, zm <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm trying to create a jar using Maven 2, but I'm not getting what I whant
> to ...
>
> I have a jar project (main.jar) that depends on another jar (common.jar).
> My
> poms are working correctly, but I need to create a self dependant main.jar
> .
> That is, I need main.jar to include the common.jar, and access it without
> any other external classpath info. I just want to execute "java -jar
> main.jar" and voila ... executes nicelly.
>
> Googling around I found no solution for the base jar "feature", but I
> heard
> about plugins for Maven ... UberJar and JavaApp. Both should work fine
> with
> Maven 1.x.
>
> I'm using Maven 2.0.7, and I've read somewhere around my googling that
> this
> "jar included dependencies" are already available in the base Maven 2
> framework.
>
> Now I just need some help to put it to works, as googling around is
> bringing
> me many results that does not interest me, and maybe you know how to do
> it,
> or point me to some link that helps ...
>
> I'm new to Maven, and I really want to learn how to use it properly ...
> the
> fact is that I also find it very difficult sometimes to find info about
> pluggins, how to use them, their settings/usage ...
>
> Anyway, any help regarding jars inside jars :) would be greatly
> appreciated.
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Maven-2-%3A-Jar-with-included-Jar-dependencies-tf4425083s177.html#a12622970
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

Reply via email to