I have a multi-module project like this
foobar
|
+-- pom.xml
|
+-- common-lib/
| |
| +-- pom.xml
| +-- src/
|
+-- foo-app/
| |
| +-- pom.xml
| +-- src/
|
+-- bar-app/
| |
| +-- pom.xml
| +-- src/
|
-+-
Both foo-app
and bar-app
depend on code in common-lib
and also on dependencies in their own POMs.
Using mvn package
I can build three light JARs.
What I want is two executable JARs, each with dependencies included, for:
- foo-app
- bar-app
How do I do this with maven?
In case anyone suggests it, due to clashes between the dependencies for foo-app
and bar-app
I cannot merge them into one single foobar-app.