mirror of https://github.com/apache/maven.git
o when we can't find artifacts we hold that thought until all the repositories
are queried, if the artifact is not found in any repo then we complain. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
676c9b5e74
commit
00ed8a3213
|
@ -172,6 +172,11 @@ public class DefaultWagonManager
|
|||
releaseWagon( wagon );
|
||||
|
||||
}
|
||||
catch ( ResourceDoesNotExistException e )
|
||||
{
|
||||
// This one we will eat when looking through remote repositories
|
||||
// because we want to cycle through them all before squawking.
|
||||
}
|
||||
catch ( UnsupportedProtocolException e )
|
||||
{
|
||||
throw new TransferFailedException( "Unsupported Protocol: ", e );
|
||||
|
@ -188,10 +193,6 @@ public class DefaultWagonManager
|
|||
{
|
||||
throw new TransferFailedException( "Authorization failed: ", e );
|
||||
}
|
||||
catch ( ResourceDoesNotExistException e )
|
||||
{
|
||||
throw new TransferFailedException( "Resource doesn't exist: ", e );
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
throw new TransferFailedException( "Release of wagon failed: ", e );
|
||||
|
@ -212,6 +213,8 @@ public class DefaultWagonManager
|
|||
else
|
||||
{
|
||||
temp.delete();
|
||||
|
||||
throw new TransferFailedException( "Resource doesn't exist in any remote repository" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue