Possible Duplicate:
With Maven, how can I build a distributable that has my project's jar and all of the dependent jars?
maybe I'm blind, but can the maven assembly plugin just create a zip file containing the current project.jar and all my dependency jars? the "bin" id contains just my project.jar and the jar-with-dependencies puts all together in one jar which I don't like.
Take a look at fat-jar plugin.
Take a look here Example 502...there is an example how to package all dependencies etc. into a tar.gz/zip etc.
You need a custom assembly descriptor to do what you want. It's a combination of the bin and the jar-with-dependencies predefined descriptors. Created a custom assembly descriptor called
assembly.xml
in thesrc/main/assembly
folder.Here's an example that is basically the bin descriptor with the dependency set added:
Then change your pom to use a descriptor instead of a descriptorRef to tell it where your custom descriptor is.