o Improved error message in case of dependency resolution

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1002574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-09-29 10:43:56 +00:00
parent 2307863420
commit 069a4a7985
1 changed files with 4 additions and 1 deletions

View File

@ -831,7 +831,10 @@ public class DefaultModelBuilder
buffer.append( " for " ).append( ModelProblemUtils.toId( childModel ) );
}
buffer.append( ": " ).append( e.getMessage() );
buffer.append( " and 'parent.relativePath' points at wrong local POM" );
if ( childModel.getProjectDirectory() != null )
{
buffer.append( " and 'parent.relativePath' points at wrong local POM" );
}
problems.add( Severity.FATAL, buffer.toString(), parent.getLocation( "" ), e );
throw new ModelBuildingException( problems.getRootModel(), problems.getRootModelId(),