From 5872cd6d2e287f9bcb52e827016d253b41f03fe5 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 13 Jan 2009 19:01:21 +0000 Subject: [PATCH] [MNG-3955] [regression] ${settings.localRepository} does not reflect actual repo path if maven.repo.local used git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@734219 13f79535-47bb-0310-9956-ffa450edef68 --- .../execution/DefaultMavenExecutionRequestPopulator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java b/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java index 10bb0c968c..a147882386 100644 --- a/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java +++ b/maven-embedder/src/main/java/org/apache/maven/embedder/execution/DefaultMavenExecutionRequestPopulator.java @@ -343,6 +343,11 @@ public class DefaultMavenExecutionRequestPopulator { request.setLocalRepository( createLocalRepository( request, request.getSettings(), configuration ) ); } + + if ( request.getLocalRepositoryPath() == null ) + { + request.setLocalRepositoryPath( new File( request.getLocalRepository().getBasedir() ).getAbsoluteFile() ); + } } // ------------------------------------------------------------------------