You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2006/02/21 19:06:27 UTC

svn commit: r379549 - /maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

Author: jdcasey
Date: Tue Feb 21 10:06:25 2006
New Revision: 379549

URL: http://svn.apache.org/viewcvs?rev=379549&view=rev
Log:
(merged from 379548.)

[MNG-2083] Adding output with generic download message and installation instructions for when the downloadUrl is missing.

Modified:
    maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

Modified: maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java
URL: http://svn.apache.org/viewcvs/maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java?rev=379549&r1=379548&r2=379549&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java (original)
+++ maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java Tue Feb 21 10:06:25 2006
@@ -189,16 +189,27 @@
     {
         StringBuffer sb = new StringBuffer( message );
 
-        if ( downloadUrl != null && !"pom".equals( type ) )
+        if ( !"pom".equals( type ) )
         {
-            sb.append( LS );
-            sb.append( LS );
-            sb.append( indentation );
-            sb.append( "Try downloading the file manually from: " );
-            sb.append( LS );
-            sb.append( indentation );
-            sb.append( "    " );
-            sb.append( downloadUrl );
+            if ( downloadUrl != null )
+            {
+                sb.append( LS );
+                sb.append( LS );
+                sb.append( indentation );
+                sb.append( "Try downloading the file manually from: " );
+                sb.append( LS );
+                sb.append( indentation );
+                sb.append( "    " );
+                sb.append( downloadUrl );
+            }
+            else
+            {
+                sb.append( LS );
+                sb.append( LS );
+                sb.append( indentation );
+                sb.append( "Try downloading the file manually from the project website." );
+            }
+            
             sb.append( LS );
             sb.append( LS );
             sb.append( indentation );