Yeah, a combination of dependency:unpack and assembly with the right descriptor should do the trick. No doubt there are several ways to skin that cat, but that is the approach we've taken in the past. It seems to work fine. Dunno about uberjar etc, you might be able to get the same effect that way as well.

adingfelder wrote:
I have for sure seen the docs on the Assembly Plugin but I also see refereces
to the uberjar and the minijar plugins and just want to make sure I pick the
right one.

part of my confusion is the documentation seems a bit vague in some areas. I think what I want is assembly:unpack as I want the class files from my
other jar to get added to my new jar, not the old jar itself.

It seems that the examples listed only show how to add code from the current
project, whereas I need to add code from an area outside (i.e
../someotherproject/classes or even ../someotherproject/src)



Jason van Zyl-3 wrote:
On 29 Jan 07, at 1:52 PM 29 Jan 07, adingfelder wrote:

I am successfully creating a jar for my project, but now need to merge the
contents of another jar into my jar.

What is the best way to do this?
The plugin documentation is usually a good place to start browsing if you have ideas:

http://maven.apache.org/plugins/

You're probably interested in the Assembly Plugin:

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

Jason.


--
View this message in context: http://www.nabble.com/merging-jars- tf3138545.html#a8698537
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email





---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to