I have multiple modules in my project and they are dependent on each other either directly or transitively. When I maven build «Project A» some where «Project D» gets build automatically.
Project A > Project B > Project C > Project D where > means Project B depends on Project A «Project D» pom snipeet is:
<project xmlns="..."> <modelVersion>4.0.0</modelVersion> <groupId>com.myProduct</groupId> <artifactId>build-MyProjectD</artifactId> <name>MyProjectD</name> ........ </project> As building «Project A» automatically build «Project B», as per my understanding to make this happen somewhere build-MyProjectD should be added as dependency in one of these projects Project A > Project B > Project C but I did not find any reference of string build-MyProjectD under poms of these projects.
Any idea how is there any other way to make build of child module (in this case «Project D») without having child artifactId presence in upstream project?