diff --git a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java index 377e0be7ea..f6124fcc4a 100644 --- a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java +++ b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java @@ -921,7 +921,7 @@ public class DefaultModelBuilder implements ModelBuilder { if (candidateSource == null) { candidateSource = resolveReactorModel(parent.getGroupId(), parent.getArtifactId(), parent.getVersion()); } - if (candidateSource == null) { + if (candidateSource == null && parentPath == null) { candidateSource = request.getSource().resolve(modelProcessor::locateExistingPom, ".."); }