From c6723a940a3d0e1697c2894f35451ee8cf383dee Mon Sep 17 00:00:00 2001 From: Trygve Laugstol Date: Mon, 22 May 2006 19:56:01 +0000 Subject: [PATCH] o Only set the local repository if it's missing. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@408734 13f79535-47bb-0310-9956-ffa450edef68 --- maven-core/src/main/java/org/apache/maven/DefaultMaven.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index 81311faf94..3c8a46b46a 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -118,7 +118,10 @@ public class DefaultMaven public void execute( MavenExecutionRequest request ) throws MavenExecutionException { - request.setLocalRepository( mavenTools.createLocalRepository( request.getLocalRepositoryPath() ) ); + if ( request.getLocalRepository() == null ) + { + request.setLocalRepository( mavenTools.createLocalRepository( request.getLocalRepositoryPath() ) ); + } Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );