in maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java [682:703]
private String resolveFromRootThenParent(Xpp3Dom pluginPomDom, String element) throws Exception {
Xpp3Dom elementDom = pluginPomDom.getChild(element);
// parent might have the group Id so resolve it
if (elementDom == null) {
Xpp3Dom pluginParentDom = pluginPomDom.getChild("parent");
if (pluginParentDom != null) {
elementDom = pluginParentDom.getChild(element);
if (elementDom == null) {
throw new Exception("unable to determine " + element);
}
return elementDom.getValue();
}
throw new Exception("unable to determine " + element);
}
return elementDom.getValue();
}