ModelValidationResult result = modelValidator.validate( model );
if ( result.getMessageCount() > 0 )
{
throw new MojoExecutionException( "The artifact information is incomplete or not valid:\n"
+ result.render( " " ) );
}
}
/**
* Generates a minimal model from the user-supplied artifact information.