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
This commit is contained in:
Trygve Laugstol 2006-05-22 19:56:01 +00:00
parent c2296be700
commit c6723a940a
1 changed files with 4 additions and 1 deletions

View File

@ -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 );