Typically, the maven project hierarchy is stored in a hierarchical file system. Child projects are stored under parent, i.e. In your terms:
modP pom.xml modC1 pom.xml modC2 pom.xml
Subprojects may have their own children, etc.
Each project, except the top level, must contain a type definition
<parent> <groupId>com.company</groupId> <artifactId>parent-artifact-id</artifactId> <version>1.0</version> </parent>
Each parent module must contain a list of modules:
<modules> <module>child1</module> <module>child2</module> <module>child3</module> </modules>
As far as I understand, in your case you keep all 3 projects in one directory, but one of them is the parent. It is possible, but I think your link to the parent error is wrong. The number of points is 3, and should be 1:
<relativePath>.../modP/pom.xml</relativePath>
try the following:
<relativePath>../modP/pom.xml</relativePath>
source share