StringUtils.replace( path, "/", File.separator );
File pom = new File( getBasedir() + File.separator + path, "pom.xml" );
// bit backwards - the project here should really be the one read in the first stage of getModelsRecursively
MockProject parent = new MockProject();
parent.setGroupId( "org.apache.maven.plugins.enforcer.test" );
parent.setArtifactId( "parent" );
parent.setVersion( "1.0-SNAPSHOT" );
MockProject project = new MockProject();
project.setParent( parent );
EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper( project ) );
List models =
utils.getModelsRecursively( "org.apache.maven.plugins.enforcer.test", "aggregate", "1.0-SNAPSHOT", pom );