mirror of https://github.com/apache/maven.git
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:
parent
479e0dd366
commit
3efaadf440
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue