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:
Benjamin Bentmann 2009-07-19 21:24:44 +00:00
parent a48742bc1a
commit fa40714be3
1 changed files with 2 additions and 4 deletions

View File

@ -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;