For example, I have 2 Maven projects. One is \"project-parent\". The other is \"project-child\". Obviously, \"project-child\" is the sub project of \"project-parent\".
If I understand the question, what you need is something like the following. It pulls in a dependency and excludes that dependency from adding to its dependency list. Often this is used if you want to inject a newer version of a package instead of the one referenced in the other package.
log4j
log4j
1.2.15
com.sun.jmx
jmxri
...
...
If you are instead talking about a relationship then I'm not sure there is a way to do this. Can you switch from being a to a ?