mirror of https://github.com/apache/maven.git
o Fixed mirror handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f8a568052e
commit
4f2c5b4511
|
@ -17,6 +17,7 @@ package org.apache.maven.project;
|
|||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
|
@ -82,7 +83,8 @@ public class DefaultMavenProjectBuilder
|
|||
{
|
||||
try
|
||||
{
|
||||
repos.add( repositorySystem.buildArtifactRepository( (Repository) repository ) );
|
||||
ArtifactRepository repo = repositorySystem.buildArtifactRepository( (Repository) repository );
|
||||
repos.addAll( repositorySystem.getMirrors( Arrays.asList( repo ) ) );
|
||||
}
|
||||
catch ( InvalidRepositoryException e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue