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:
Benjamin Bentmann 2009-06-20 19:58:58 +00:00
parent f8a568052e
commit 4f2c5b4511
1 changed files with 3 additions and 1 deletions

View File

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