From 4f2c5b4511f6d447d858757be9f63e620a95c8ae Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sat, 20 Jun 2009 19:58:58 +0000 Subject: [PATCH] o Fixed mirror handling git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786899 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/DefaultMavenProjectBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index b71078756b..074ac4a984 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -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 ) {