I got the following Maven module layout:
- All
- Sub-Project 1
- Sub-Project 2
- Sub-Project 3
- Sub-Project N
- Deliverable-Build
- Dependency-Report
I manage all my submodule versions in the 'All' as managed dependencies. I reference those managed dependencies in the 'Deliverable-Build' module, to include them in the final zip archive.
The same dependency set needs to be referenced in the 'Dependency Report' module.
If the developer creates a new sub-module. He needs to manually put the new module into
- 'All' as managed dependency
- 'Deliverable-Build' as dependency
- 'Dependency-Report' as dependency
It is easy to forget one of those, so is there a way to simplify this? e.g. by once defining a 'dependency group' and reusing it in those three locations?