code: private void validate( Resolver pResolver, ValidationSet pValidationSet,ValidationErrorHandler errorHandler )
          throws MojoExecutionException, MojoFailureException
      {
          final Schema schema = getSchema( pResolver, pValidationSet );
          final File[] files =
              getFiles( pValidationSet.getDir(), pValidationSet.getIncludes(),
                        getExcludes( pValidationSet.getExcludes(), pValidationSet.isSkipDefaultExcludes() ) );
          if ( files.length == 0 )
          {
              getLog().info( "No matching files found for ValidationSet with public ID " + pValidationSet.getPublicId()
                  + ", system ID " + pValidationSet.getSystemId() + "." );
          }
          for ( int i = 0; i < files.length; i++ )
          {
              validate( pResolver, pValidationSet, schema, files[i],errorHandler );
          }
      }
docs: Called for validating a set of XML files against a common schema.
  
  @param pResolver The resolver to use for loading external entities.
  @param pValidationSet The set of XML files to validate.
  @throws MojoExecutionException Validating the set of files failed.
  @throws MojoFailureException A configuration error was detected.