title: maven-resources-plugin error using copy-resources goal: 'resources', 'outputDirectory' missing or invalid
body: <p>I'm trying to use the maven-resources-plugin to do some filtering using the copy-resources goal, and ran into the following error: </p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources (default-cli) on project bar: The parameters 'resources', 'outputDirectory' for goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources are missing or invalid
  </code></pre>
  
  <p>To isolate the problem, I created a very simple pom.xml, copied pretty nearly verbatim from <a href="http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html">http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html</a>, ran it, and got the same error.  </p>
  
  <p>I'm invoking it with </p>
  
  <pre><code>mvn resources:copy-resources
  </code></pre>
  
  <p>Any ideas?  Here's the test pom.xml.  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;foo&lt;/groupId&gt;
    &lt;artifactId&gt;bar&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;copy-resources&lt;/id&gt;
              &lt;!-- here the phase you need --&gt;
              &lt;phase&gt;validate&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;copy-resources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;outputDirectory&gt;${basedir}/target/extra-resources&lt;/outputDirectory&gt;
                &lt;resources&gt;          
                  &lt;resource&gt;
                    &lt;directory&gt;src/non-packaged-resources&lt;/directory&gt;
                    &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;/resource&gt;
                &lt;/resources&gt;              
              &lt;/configuration&gt;            
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  </code></pre>
  
  <p></p>