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:
Brett Leslie Porter 2006-05-29 07:45:07 +00:00
parent 0857ad1c40
commit c096f8a32d
1 changed files with 2 additions and 4 deletions

View File

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