code: void checkDependencies()
              throws MojoExecutionException
      {
          if ( dependencies == null )
          {
              return;
          }
  
          boolean failed = false;
  
          Collection<Artifact> artifacts = getProject().getArtifacts();
  
          getLog().debug( "artifacts: " + artifacts.size() );
  
          if ( dependencies.getIncludes() != null && !dependencies.getIncludes().isEmpty() )
          {
              failed = checkDependencies( dependencies.getIncludes(), artifacts );
          }
          if ( dependencies.getExcludes() != null && !dependencies.getExcludes().isEmpty() )
          {
              failed = checkDependencies( dependencies.getExcludes(), artifacts ) || failed;
          }
  
          if ( failed )
          {
              throw new MojoExecutionException(
                      "At least one specified dependency is incorrect. Review your project configuration." );
          }
      }
docs: Detects improper includes/excludes configuration.
  
  @throws MojoExecutionException if at least one of the specified includes or excludes matches no artifact,
  false otherwise