From 3efaadf440250ac1be092669a05ee2354bf54d4c Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 9 Apr 2010 11:48:37 +0000 Subject: [PATCH] o Added short-circuit to disable local parent resolution via git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@932366 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/model/building/DefaultModelBuilder.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java index 7a24bc924a..01a3adbcd8 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java @@ -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() );