private void validateArtifactInformation ( ) throws MojoExecutionException { Model model = generateModel ( ) ; ModelValidationResult result = modelValidator . validate ( model ) ; if ( result . getMessageCount ( ) > 0 ) { throw new MojoExecutionException ( "The artifact information is incomplete or not valid:\n" + result . render ( " " ) ) ; } }
Validates the user - supplied artifact information .