I read a lot about maven multi module projects and came to the conclusion that I want to use the following approach:
root
--pom.xml
--parent
--pom.xml
--module-a
--pom.xml
--module-b
--pom.xml
see here
But now I am a bit struggling on how to handle second/third/n level modules, e.g. module-a has also multiple sub-modules, especially for deep hierarchies with a whole lot of modules.
Do I see module a again as a root then resulting in the following structure:
root
--pom.xml
--parent
--pom.xml
--module-a
--pom.xml
--parent-module-a
--pom.xml
--module-a-1
--pom.xml
--module-a-2
--pom.xml
--module-b
--pom.xml
Or would I put the sub-modules of module-a still in the root directory:
root
--pom.xml
--parent
--pom.xml
--module-a
--pom.xml
--module-b
--pom.xml
--module-a-1
--pom.xml
--module-a-2
--pom.xml
Thank you for your help!