mirror of https://github.com/apache/maven.git
bootstrap fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@410045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0857ad1c40
commit
c096f8a32d
|
@ -94,7 +94,7 @@ public class OnlineArtifactDownloader
|
||||||
directory.mkdirs();
|
directory.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !getRemoteArtifact( dep, destinationFile ) )
|
if ( !getRemoteArtifact( dep, destinationFile ) && !destinationFile.exists() )
|
||||||
{
|
{
|
||||||
throw new DownloadFailedException( "Failed to download " + dep );
|
throw new DownloadFailedException( "Failed to download " + dep );
|
||||||
}
|
}
|
||||||
|
@ -318,10 +318,8 @@ public class OnlineArtifactDownloader
|
||||||
// TODO: use super POM?
|
// TODO: use super POM?
|
||||||
remoteRepositories.add( new Repository( "central", REPO_URL, Repository.LAYOUT_DEFAULT, false, true ) );
|
remoteRepositories.add( new Repository( "central", REPO_URL, Repository.LAYOUT_DEFAULT, false, true ) );
|
||||||
// TODO: use maven root POM?
|
// TODO: use maven root POM?
|
||||||
/*
|
remoteRepositories.add( new Repository( "apache.snapshots", "http://cvs.apache.org/maven-snapshot-repository/",
|
||||||
remoteRepositories.add( new Repository( "snapshots", "http://snapshots.maven.codehaus.org/maven2/",
|
|
||||||
Repository.LAYOUT_DEFAULT, true, false ) );
|
Repository.LAYOUT_DEFAULT, true, false ) );
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return remoteRepositories;
|
return remoteRepositories;
|
||||||
|
|
Loading…
Reference in New Issue