On Aug 14, 2006, at 10:11 PM, Brett Porter wrote:
On 15/08/06, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:
On Mon, 2006-08-14 at 20:57 -0700, Patrick Linskey wrote:
> Does anyone know of existing mvn technology to merge resource
> easily assemble jars together?
Check out the Assembly plugin and it's predefined
"jar-with-dependencies" descriptor. I'm pretty sure that most
using Maven will just have a runtime dependency on the core OpenJPA
library and be done with it, but it's always nice for Ant users.
Note that that will not merge anything you need in the META-INF
directory. It does do it for plexus components.xml files though, so
maybe it's a good time to make that pluggable.
It'll definitely add the files from all the META-INF directories into
the resulting jar. I guess you are talking specifically about some
pluggable strategy to merge two files of the same name such as two
META-INF/persistence.xml files or two META-INF/ejb-jar.xml files?