Say I have projects A, B, C, and D. B depends on A, C depends on B and D depends on C like so
A <-- B <-- C
^
└ --- D
Is there a way with maven to build C and D given B but to not build A? As in is there a way to build a project and the projects that depend on it?
A, B, C, and D are in a multimodule project. I know I could just build the whole project but that seems like a waste.
Edit: Solution found for this case, in root directory of multimodule project do mvn <your goals here> -pl B -amd
, and just for further reference, say B is also a multimodule project and has a, b, and c in it and you want to do with for c, do mvn <your goals here> -pl B\c -amd
Also, is there a way to do this if A and B are in one multimodule project and C and D are in another? I realize that may be trickier.
platform | us-specific
|
A <-- B <-+-- C
^ |
└ --+-- D