title: Send test reports to different directory using maven-surefire-plugin
body: <p>I want to generate my reports so I used <code>maven-surefire-plugin</code>.</p>
  
  <p>This is my pom.xml:</p>
  
  <pre><code>&lt;plugins&gt;
  &lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.10&lt;/version&gt;
  &lt;executions&gt; 
  &lt;execution&gt; 
   &lt;id&gt;test-reports&lt;/id&gt; 
      &lt;phase&gt;install&lt;/phase&gt; 
      &lt;configuration&gt; 
        &lt;tasks&gt; 
  &lt;junitreport todir="./reports"&gt;
  &lt;fileset dir="./reports"&gt;
  &lt;include name="TEST-*.xml"/&gt;
  &lt;/fileset&gt;
  &lt;report format="frames" todir="./report/html"/&gt;
  &lt;/junitreport&gt;
  &lt;/tasks&gt; 
      &lt;/configuration&gt; 
      &lt;goals&gt; 
        &lt;goal&gt;test &lt;/goal&gt; 
      &lt;/goals&gt; 
    &lt;/execution&gt; 
  &lt;/executions&gt; 
  &lt;/plugin&gt;
  </code></pre>
  
  <p></p>
  
  <p>But I'm getting this error when I run maven test:</p>
  
  <pre><code> Tests run: 6, Failures: 2, Errors: 2, Skipped: 0
   [INFO] --------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] --------------------------------------------------------------------
   [INFO] Total time: 10.403s
   [INFO] Finished at: Wed Oct 12 08:35:10 CEST 2011
   [INFO] Final Memory: 17M/126M
   [INFO] --------------------------------------------------------------------
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-      plugin:2.10:test (default-test) on project jebouquine: There are test failures.
   [ERROR] 
   [ERROR] Please refer to C:\Users\Amira\workspace1\jebouquine\target\surefire-reports for the individual test results.
   [ERROR] -&gt; [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1]       http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>
  
  <p>When I open  <code>C:\Users\Amira\workspace1\jebouquine\target\surefire-reports</code> I find repotrts but I want them under <code>./reports</code>.</p>
  
  <p>Any idea how to do it? Or is there any alternative to generate my tests reports?</p>