title: "mvn test" does not copy contents of src/test/resources to the output directory?
body: <p>A datafile was updated under <code>src/test/resources</code>.  I had anticipated that when running </p>
  
  <pre><code>mvn test
  </code></pre>
  
  <p>that the latest version of that datafile would be copied to the output directory - which is <code>${PROJECT_ROOT}/target/scala-2.11/test-classes/</code> . However that did not happen. Instead it was necessary to run</p>
  
  <pre><code>mvn package
  </code></pre>
  
  <p>for the datafile to be synced.  Is there any way - short of invoking <code>mvn package</code> (which does a lot more work than required since the source files did not change) - to sync the output directories with the current source resources?</p>
  
  <p>The output directories from the <code>pom.xml</code> are:</p>
  
  <pre><code>&lt;outputDirectory&gt;target/scala-${scala.binary.version}/classes&lt;/outputDirectory&gt;
   &lt;testOutputDirectory&gt;target/scala-${scala.binary.version}/test-classes&lt;/testOutputDirectory&gt;
  </code></pre>
  
  <p>The <code>mvn test</code> is not copying artifacts to either place.</p>
  
  <p>Here is the core testing and packaging related portions of the <code>pom.xml</code> . </p>
  
  <pre><code>&lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;build&gt;
      &lt;outputDirectory&gt;target/scala-${scala.binary.version}/classes&lt;/outputDirectory&gt;
      &lt;testOutputDirectory&gt;target/scala-${scala.binary.version}/test-classes&lt;/testOutputDirectory&gt;
      &lt;!--&lt;resources&gt;--&gt;
        &lt;!--&lt;resource&gt;--&gt;
          &lt;!--&lt;directory&gt;src/test/resources&lt;/directory&gt;--&gt;
          &lt;!--&lt;targetPath&gt;.&lt;/targetPath&gt;--&gt;
          &lt;!--&lt;includes&gt;--&gt;
            &lt;!--&lt;include&gt;**/*&lt;/include&gt;--&gt;
          &lt;!--&lt;/includes&gt;--&gt;
        &lt;!--&lt;/resource&gt;--&gt;
      &lt;!--&lt;/resources&gt;--&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
              &lt;artifactId&gt;scala-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.2.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;scalaCompatVersion&gt;${scala.binary.version}&lt;/scalaCompatVersion&gt;
                  &lt;scalaVersion&gt;${scala.version}&lt;/scalaVersion&gt;
                  &lt;sourceDir&gt;src/main/scala&lt;/sourceDir&gt;
                  &lt;args&gt;
                      &lt;arg&gt;-unchecked&lt;/arg&gt;
                      &lt;arg&gt;-deprecation&lt;/arg&gt;
                      &lt;arg&gt;-feature&lt;/arg&gt;
                      &lt;arg&gt;-Xmacro-settings:materialize-derivations&lt;/arg&gt;
                  &lt;/args&gt;
                  &lt;jvmArgs&gt;
                      &lt;jvmArg&gt;-Xms64m&lt;/jvmArg&gt;
                      &lt;jvmArg&gt;-Xmx1024m&lt;/jvmArg&gt;
                  &lt;/jvmArgs&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;scala-compile-first&lt;/id&gt;
                      &lt;phase&gt;process-resources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;add-source&lt;/goal&gt;
                          &lt;goal&gt;compile&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;scala-test-compile&lt;/id&gt;
                      &lt;phase&gt;process-test-resources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;testCompile&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;createDependencyReducedPom&gt;false&lt;/createDependencyReducedPom&gt;
                          &lt;minimizeJar&gt;false&lt;/minimizeJar&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.7&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;skipTests&gt;true&lt;/skipTests&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.scalatest&lt;/groupId&gt;
              &lt;artifactId&gt;scalatest-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.0.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;reportsDirectory&gt;${project.build.directory}/surefire-reports&lt;/reportsDirectory&gt;
                  &lt;junitxml&gt;.&lt;/junitxml&gt;
                  &lt;filereports&gt;WDF TestSuite.txt&lt;/filereports&gt;
                  &lt;parallel&gt;false&lt;/parallel&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;test&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;test&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;suffixes&gt;(?&amp;lt;!Integration)(Test|Spec)&lt;/suffixes&gt;
                          &lt;stdout&gt;G&lt;/stdout&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;integration-test&lt;/id&gt;
                      &lt;phase&gt;integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;test&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;suffixes&gt;(?&amp;lt;=Integration)(Test|Spec)&lt;/suffixes&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>