[MNG-4574] [regression] invoker:install uses wrong local repo path when settings.xml contains wildcard mirror

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@917315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-02-28 23:07:35 +00:00
parent dd34e52b56
commit f2aa8eda8a
1 changed files with 7 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class DefaultArtifactRepositoryFactory
{
MavenSession session = legacySupport.getSession();
if ( session != null && repository != null )
if ( session != null && repository != null && !isLocalRepository( repository ) )
{
MavenExecutionRequest request = session.getRequest();
if ( request != null )
@ -125,4 +125,10 @@ public class DefaultArtifactRepositoryFactory
return repository;
}
private boolean isLocalRepository( ArtifactRepository repository )
{
// unfortunately, the API doesn't allow to tell a remote repo and the local repo apart...
return "local".equals( repository.getId() );
}
}