mirror of https://github.com/apache/maven.git
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:
parent
d342f7738a
commit
c7761703c8
|
@ -6,7 +6,7 @@
|
||||||
<repository>
|
<repository>
|
||||||
<id>central</id>
|
<id>central</id>
|
||||||
<name>Maven Repository Switchboard</name>
|
<name>Maven Repository Switchboard</name>
|
||||||
<url>http://test.maven.codehaus.org/maven2</url>
|
<url>http://repo1.maven.org/maven2</url>
|
||||||
<layout>default</layout>
|
<layout>default</layout>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>central</id>
|
<id>central</id>
|
||||||
<name>Maven Plugin Repository</name>
|
<name>Maven Plugin Repository</name>
|
||||||
<url>http://test.maven.codehaus.org/maven2</url>
|
<url>http://repo1.maven.org/maven2</url>
|
||||||
<layout>default</layout>
|
<layout>default</layout>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
|
@ -6,11 +6,11 @@ import model.Repository;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
public class ArtifactDownloader
|
public class ArtifactDownloader
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,8 @@ public class ArtifactDownloader
|
||||||
|
|
||||||
private Repository localRepository;
|
private Repository localRepository;
|
||||||
|
|
||||||
|
private static final String REPO_URL = "http://repo1.maven.org/maven2";
|
||||||
|
|
||||||
public ArtifactDownloader( Repository localRepository, List remoteRepositories )
|
public ArtifactDownloader( Repository localRepository, List remoteRepositories )
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
|
@ -117,8 +119,7 @@ public class ArtifactDownloader
|
||||||
if ( repositories.isEmpty() )
|
if ( repositories.isEmpty() )
|
||||||
{
|
{
|
||||||
// TODO: use super POM?
|
// TODO: use super POM?
|
||||||
Repository repository = new Repository( "http://test.maven.codehaus.org/maven2", Repository.LAYOUT_DEFAULT );
|
Repository repository = new Repository( REPO_URL, Repository.LAYOUT_DEFAULT );
|
||||||
// Repository repository = new Repository( "http://repo1.maven.org/maven2", Repository.LAYOUT_LEGACY );
|
|
||||||
remoteRepos.add( repository );
|
remoteRepos.add( repository );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue