o Added short-circuit to disable local parent resolution via <relativePath/>

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@932366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-04-09 11:48:37 +00:00
parent 479e0dd366
commit 3efaadf440
1 changed files with 5 additions and 0 deletions

View File

@ -647,6 +647,11 @@ public class DefaultModelBuilder
String parentPath = childModel.getParent().getRelativePath();
if ( parentPath == null || parentPath.length() <= 0 )
{
return null;
}
parentPath = parentPath.replace( '\\', File.separatorChar ).replace( '/', File.separatorChar );
File pomFile = new File( new File( projectDirectory, parentPath ).toURI().normalize() );