I have a maven project in which I would like to unpack all the child modules of a mutli module project. Does anyone know if the best way to approach this? There are over 100 modules in this project and I’m trying to avoid having to copy all this information somewhere else.
Share
First you will need to create a pom.xml file that has all the projects as dependencies.
all other submodules as
dependencies, then you are in luck, just add a dependency to that submodule.
Then, in this project, you can use
dependency:unpack-dependenciesto unpack the projects:(Set includeGroupIds to a pattern that matches all submodule groupIds)
Now you just have to call
(or any other phase you configure in the execution)