I've successfully used mvn -U dependency:copy-dependencies
to downloaded all dependencies - let's say module-a.jar, module-b.jar and module-c.jar.
Instead of having them in a flat directory, I need the jars in a certain hierarchical structure and also zipped.
release.zip
|
- base/classes/
| |
| - module-a.jar
|
- customer/
|
- classes/
| |
| - module-b.jar
|
|
- plugins/
|
- module-c.jar
There are 4 projects, the 3 modules above plus the project that aggregates all the modules in a certain version.
Is it possible to tell maven or the maven-dependency-plugin to copy the dependencies into the desired structure? How?