Have a look at the maven-assembly-plugin. It basically does what you're
looking for.

http://maven.apache.org/plugins/maven-assembly-plugin/predefined.html

The jar-with-dependencies descriptor creates a single big jar with all of
your dependencies.

If you only want your own jars bundled together, I guess you should put the
scope provided for any other jar on your depending upon.

Cheers.

Denis.


Eric Zhao wrote:
> 
> my project has 3 modules, one of which depends on the other two. After i
> package it with Maven 2, i got 3 jars. This is ok but i want to pack them
> into one jar file (so that when i distribute it, my client has to deal
> with one jar file). How to do that?
> 

-- 
View this message in context: 
http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5430095
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to