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 275fdac478..9bbcaee309 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 @@ -127,8 +127,8 @@ public class DefaultMavenProjectBuilder localRepositoryValue = superModel.getLocal().getRepository(); } - // TODO: systemProperty in modello will make this redundant localRepositoryValue = System.getProperty( "maven.repo.local", localRepositoryValue ); + System.setProperty( "maven.repo.local", localRepositoryValue ); ArtifactRepository localRepository = null; if ( localRepositoryValue != null )