mirror of https://github.com/apache/maven.git
[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:
parent
b07d835b9c
commit
bd540e30b7
|
@ -189,16 +189,27 @@ public class AbstractArtifactResolutionException
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer( message );
|
StringBuffer sb = new StringBuffer( message );
|
||||||
|
|
||||||
if ( downloadUrl != null && !"pom".equals( type ) )
|
if ( !"pom".equals( type ) )
|
||||||
{
|
{
|
||||||
sb.append( LS );
|
if ( downloadUrl != null )
|
||||||
sb.append( LS );
|
{
|
||||||
sb.append( indentation );
|
sb.append( LS );
|
||||||
sb.append( "Try downloading the file manually from: " );
|
sb.append( LS );
|
||||||
sb.append( LS );
|
sb.append( indentation );
|
||||||
sb.append( indentation );
|
sb.append( "Try downloading the file manually from: " );
|
||||||
sb.append( " " );
|
sb.append( LS );
|
||||||
sb.append( downloadUrl );
|
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( LS );
|
sb.append( LS );
|
||||||
sb.append( indentation );
|
sb.append( indentation );
|
||||||
|
|
Loading…
Reference in New Issue