I have a some maven projects that generate a zip with the maven assembly plugins (each project builds its own zip).
Now I have another project that is just a multi module project, referencing the other projects. I want this project to generate a zip with the contents of the submodules zips.
How is this possible? I don't know how to configure the assembly plugin for the multimodule project.
To clarify, I have these projects
Submodule1
Submodule2
Mainmodule
The submodules generate these zip-file with the assembly-plugin:
Submodule1:
{Submodule1.jar,
dependency1.jar,
dependency2.jar,
someotherfile.txt}
Submodule2:
{Submodule2.jar,
dependency3.jar,
evenanotherfile.txt}
And I want the main module to generate this zip:
Mainmodule:
{Submodule1.jar,
dependency1.jar,
dependency2.jar,
someotherfile.txt
Submodule2.jar,
dependency3.jar,
evenanotherfile.txt}
EDIT: Regarding the "duplicate": This question has nothing to do with creating multiple assemblies from one maven project. I have multiple maven projects, each of them builds its own assembly. Then I have another (multii module) project, that builds its own assembly (but this assembly should contain the contents of the submodules assemblies)