I have module setup:
grandparent -> parent -> child1
\ -> child2
\
--> child3
--> child4
I would like to build everything under parent.
I have tried:
mvn install --projects ":parent"
but that only builds parent, and none of the submodules of parent.
The modules are setup correctly because
mvn install
builds all submodules.
For now my workaround is to enumerate all submodules of parent:
mvn install --projects ":parent,:child1,:child2"
This differs from Maven Modules + Building a Single Specific Module because:
- Here I have three levels are parent projects. The suggested question only has two levels.
- -am (also make) would build too much in my case because child2 depends on child3. I only want child1 and child2 built (parent can be built or not built. I don't care about that one).