mirror of https://github.com/apache/maven.git
o Revised error handling, API misuse is really not a model/network problem
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a48742bc1a
commit
fa40714be3
|
@ -488,10 +488,8 @@ public class DefaultModelBuilder
|
||||||
|
|
||||||
if ( modelResolver == null )
|
if ( modelResolver == null )
|
||||||
{
|
{
|
||||||
problems.add( new ModelProblem( "Non-resolvable parent POM " + toId( parent ) + " for POM "
|
throw new IllegalArgumentException( "no model resolver provided, cannot resolve parent POM "
|
||||||
+ toSourceHint( childModel ) + ": " + "No model resolver provided", ModelProblem.Severity.FATAL,
|
+ toId( parent ) + " for POM " + toSourceHint( childModel ) );
|
||||||
toSourceHint( childModel ) ) );
|
|
||||||
throw new ModelBuildingException( problems );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ModelSource modelSource;
|
ModelSource modelSource;
|
||||||
|
|
Loading…
Reference in New Issue