You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Boyer <cb...@musiciansfriend.com> on 2008/05/30 22:52:27 UTC

Building a Jar that includes library jars

I can seem to find a way to build a Jar that includes the jars listed  
in the dependency section. Is there a way to do this?

--Chris


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


RE: Building a Jar that includes library jars

Posted by sairndain <sa...@yahoo.com>.
I'm using maven2 (v2.0.9)

Are you referring to the "build-helper-maven-plugin"?

Where do I place the "build-helper-maven-plugin" within the pom's "build"
tag?

Does it come before, or after, the "maven-jar-plugin"?....   Or does it
replace the "maven-jar-plugin"?

Is there any way to simply include the jars listed in the manifest classpath
inside of the resulting application jar (i.e., not "exploded")?

I want to be able to execute the resulting jarred application from the
command line.  So the dependency jars that are listed in the manifest
classpath need to be in the resulting application jar.

Thanks

sd










Michael Prescott-2 wrote:
> 
> Try using the assembly plugin with the built-in descriptor format of
> jar-with-dependencies.
> 
> Michael
> 
> -----Original Message-----
> From: Chris Boyer [mailto:cboyer@musiciansfriend.com] 
> Sent: May 30, 2008 4:52 PM
> To: Maven Users List
> Subject: Building a Jar that includes library jars
> 
> I can seem to find a way to build a Jar that includes the jars listed in
> the dependency section. Is there a way to do this?
> 
> --Chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-a-Jar-that-includes-library-jars-tp17567716p19043512.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Building a Jar that includes library jars

Posted by Chris Boyer <cb...@musiciansfriend.com>.
Thanks. That worked great.

--Chris

On May 30, 2008, at 1:55 PM, Michael Prescott wrote:

> Try using the assembly plugin with the built-in descriptor format of
> jar-with-dependencies.
>
> Michael
>
> -----Original Message-----
> From: Chris Boyer [mailto:cboyer@musiciansfriend.com]
> Sent: May 30, 2008 4:52 PM
> To: Maven Users List
> Subject: Building a Jar that includes library jars
>
> I can seem to find a way to build a Jar that includes the jars  
> listed in
> the dependency section. Is there a way to do this?
>
> --Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


RE: Building a Jar that includes library jars

Posted by Michael Prescott <mp...@exchangesolutions.com>.
Try using the assembly plugin with the built-in descriptor format of
jar-with-dependencies.

Michael

-----Original Message-----
From: Chris Boyer [mailto:cboyer@musiciansfriend.com] 
Sent: May 30, 2008 4:52 PM
To: Maven Users List
Subject: Building a Jar that includes library jars

I can seem to find a way to build a Jar that includes the jars listed in
the dependency section. Is there a way to do this?

--Chris


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




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