You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jv...@apache.org on 2004/08/10 20:01:31 UTC
cvs commit: maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/manager DefaultWagonManager.java
jvanzyl 2004/08/10 11:01:31
Modified: maven-artifact/src/main/java/org/apache/maven/artifact/manager
DefaultWagonManager.java
Log:
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.
Revision Changes Path
1.2 +7 -4 maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Index: DefaultWagonManager.java
===================================================================
RCS file: /home/cvs/maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultWagonManager.java 9 Aug 2004 18:37:33 -0000 1.1
+++ DefaultWagonManager.java 10 Aug 2004 18:01:31 -0000 1.2
@@ -172,6 +172,11 @@
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 @@
{
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 @@
else
{
temp.delete();
+
+ throw new TransferFailedException( "Resource doesn't exist in any remote repository" );
}
}