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
This commit is contained in:
Brett Leslie Porter 2005-04-07 04:59:12 +00:00
parent d342f7738a
commit c7761703c8
2 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://test.maven.codehaus.org/maven2</url>
<url>http://repo1.maven.org/maven2</url>
<layout>default</layout>
</repository>
</repositories>
@ -15,7 +15,7 @@
<pluginRepository>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://test.maven.codehaus.org/maven2</url>
<url>http://repo1.maven.org/maven2</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>

View File

@ -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 );
}
}