You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2013/10/06 20:24:50 UTC

git commit: Reverting fa3a4ebcd81435a88a1dfe939b2bebece5785f15 which is specific to Wagon HTTP. The message prior to this change yielded:

Updated Branches:
  refs/heads/master eaf385f8a -> ae5a37900


Reverting fa3a4ebcd81435a88a1dfe939b2bebece5785f15 which is specific to Wagon HTTP. The message prior to this change yielded:

[ERROR] Failed to execute goal on project test: Could not resolve dependencies for project org.apache.maven.its.mng3477:test:jar:1: Failed to collect dependencies at org.apache.maven.its.mng3477:dep:jar:1.0: Failed to read artifact descriptor for org.apache.maven.its.mng3477:dep:jar:1.0: Could not transfer artifact org.apache.maven.its.mng3477:dep:pom:1.0 from/to central (http://localhost:54312/repo): Connection refused -> [Help 1]

After the change:

[ERROR] Failed to execute goal on project test: Could not resolve dependencies for project org.apache.maven.its.mng3477:test:jar:1: Failed to collect dependencies at org.apache.maven.its.mng3477:dep:jar:1.0: Failed to read artifact descriptor for org.apache.maven.its.mng3477:dep:jar:1.0: Could not transfer artifact org.apache.maven.its.mng3477:dep:pom:1.0 from/to central (http://localhost:54312/repo): Connection to http://localhost:54312 refused: Connection refused -> [Help 1]

Notice the last part of the message. This type of message only comes from Wagon HTTP, but the original is sufficient to catch and report the error for HTTP Wagon and other Aether connectors. We want to detect and catch the connection refused exception and we do with the original regex.


Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/ae5a3790
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/ae5a3790
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/ae5a3790

Branch: refs/heads/master
Commit: ae5a37900c0eed9e52689eb3c4c357a3be467647
Parents: eaf385f
Author: Jason van Zyl <ja...@tesla.io>
Authored: Sun Oct 6 14:06:27 2013 -0400
Committer: Jason van Zyl <ja...@tesla.io>
Committed: Sun Oct 6 14:06:27 2013 -0400

----------------------------------------------------------------------
 .../it/MavenITmng3477DependencyResolutionErrorMessageTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/ae5a3790/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3477DependencyResolutionErrorMessageTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3477DependencyResolutionErrorMessageTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3477DependencyResolutionErrorMessageTest.java
index 0e66ab0..95d33d2 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3477DependencyResolutionErrorMessageTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3477DependencyResolutionErrorMessageTest.java
@@ -63,7 +63,7 @@ public class MavenITmng3477DependencyResolutionErrorMessageTest
             List<String> lines = verifier.loadLines( verifier.getLogFileName(), "UTF-8" );
             for ( String line : lines )
             {
-                if ( line.matches( ".*org.apache.maven.its.mng3477:dep:jar:1.0.*Connection to .* refused.*" ) )
+                if ( line.matches( ".*org.apache.maven.its.mng3477:dep:jar:1.0.*Connection refused.*" ) )
                 {
                     foundCause = true;
                     break;