PR: MNG-2282

Also catch TransferFailedException, which occurs when java.net.ConnectException
or java.net.UnknownHostException occur.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@406673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2006-05-15 16:40:48 +00:00
parent 8469b7e667
commit 65b412ea17
1 changed files with 5 additions and 0 deletions

View File

@ -253,6 +253,11 @@ public void getArtifact( Artifact artifact, List remoteRepositories )
getLogger().warn(
"Unable to get resource from repository " + repository.getId() + " (" + repository.getUrl() + ")" );
}
catch ( TransferFailedException e )
{
getLogger().warn(
"Unable to get resource from repository " + repository.getId() + " (" + repository.getUrl() + ")" );
}
}
if ( !successful )