From c7761703c8f2d57df5de26d6619fd4974964fbaf Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Thu, 7 Apr 2005 04:59:12 +0000 Subject: [PATCH] back to repo1.maven.org, which is now at ibiblio git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163827 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/resources/org/apache/maven/project/pom-4.0.0.xml | 6 +++--- .../src/main/java/download/ArtifactDownloader.java | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/maven-core/src/main/resources/org/apache/maven/project/pom-4.0.0.xml b/maven-core/src/main/resources/org/apache/maven/project/pom-4.0.0.xml index dab5d72600..0a8062b855 100644 --- a/maven-core/src/main/resources/org/apache/maven/project/pom-4.0.0.xml +++ b/maven-core/src/main/resources/org/apache/maven/project/pom-4.0.0.xml @@ -6,16 +6,16 @@ central Maven Repository Switchboard - http://test.maven.codehaus.org/maven2 + http://repo1.maven.org/maven2 default - + central Maven Plugin Repository - http://test.maven.codehaus.org/maven2 + http://repo1.maven.org/maven2 default diff --git a/maven-mboot2/src/main/java/download/ArtifactDownloader.java b/maven-mboot2/src/main/java/download/ArtifactDownloader.java index 4395235ee4..b616a4b429 100644 --- a/maven-mboot2/src/main/java/download/ArtifactDownloader.java +++ b/maven-mboot2/src/main/java/download/ArtifactDownloader.java @@ -6,11 +6,11 @@ import model.Repository; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; +import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; -import java.util.Collection; public class ArtifactDownloader { @@ -32,6 +32,8 @@ public class ArtifactDownloader private Repository localRepository; + private static final String REPO_URL = "http://repo1.maven.org/maven2"; + public ArtifactDownloader( Repository localRepository, List remoteRepositories ) throws Exception { @@ -117,8 +119,7 @@ public class ArtifactDownloader if ( repositories.isEmpty() ) { // TODO: use super POM? - Repository repository = new Repository( "http://test.maven.codehaus.org/maven2", Repository.LAYOUT_DEFAULT ); -// Repository repository = new Repository( "http://repo1.maven.org/maven2", Repository.LAYOUT_LEGACY ); + Repository repository = new Repository( REPO_URL, Repository.LAYOUT_DEFAULT ); remoteRepos.add( repository ); } }