diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index 457c87efee..9118642bdd 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -115,7 +115,7 @@ public class DefaultMavenProjectBuilder throw new ProjectBuildingException( "Inheritence not supported in the user override POM" ); } - if ( localRepositoryValue == null && userModel.getLocal() != null && userModel.getLocal().getRepository() != null ) + if ( userModel.getLocal() != null && userModel.getLocal().getRepository() != null ) { localRepositoryValue = userModel.getLocal().getRepository(); }