views:

36

answers:

2

Hi,

I have a maven project which uses the shade plugin to create a jar from several projects.

In addition it is possible with this plugin to create a source jar from these several projects.

For legacy reason we need to have one jar which contains classes and sources, so the combination of the two jars created by the shade plugin.

What is the best way (preferable in maven) to merge these two jars ?

I found the One-Jar but this apparently combines all dependencies - but I want to explictly say "merge this jar and that jar".

Thanks for any help

A: 

This similar question might help

RC
A: 

One possibility is to use the maven assembly plugin to create a single jar specifying and if required, maven dependency plugin.

Raghuram