[MNG-2083] Adding support for output of installation instructions with a generic download message if downloadUrl is missing.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@379548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2006-02-21 18:04:22 +00:00
parent b07d835b9c
commit bd540e30b7
1 changed files with 20 additions and 9 deletions

View File

@ -189,7 +189,9 @@ public class AbstractArtifactResolutionException
{
StringBuffer sb = new StringBuffer( message );
if ( downloadUrl != null && !"pom".equals( type ) )
if ( !"pom".equals( type ) )
{
if ( downloadUrl != null )
{
sb.append( LS );
sb.append( LS );
@ -199,6 +201,15 @@ public class AbstractArtifactResolutionException
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 );