code: 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( "  " ) );
          }
      }
docs: Validates the user-supplied artifact information.
  
  @throws MojoExecutionException If any artifact coordinate is invalid.