mirror of https://github.com/apache/maven.git
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:
parent
2307863420
commit
069a4a7985
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue