title: Maven Junit Aggregate Xml
body: <p>I'm looking to aggregate the junit report xml files generated from maven running junit tests.  I found the below and added it to my pom.  But I believe this is only for the report, whereas I want the xml files to be aggregated.</p>
  
  <p><a href="https://maven.apache.org/surefire/maven-surefire-report-plugin/report-only-mojo.html" rel="nofollow noreferrer">https://maven.apache.org/surefire/maven-surefire-report-plugin/report-only-mojo.html</a></p>
  
  <p>I have the following in my POM</p>
  
  <pre><code>&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.21.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;parallel&gt;methods&lt;/parallel&gt;
          &lt;threadCount&gt;10&lt;/threadCount&gt;
          &lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt;
                  &lt;aggregate&gt;true&lt;/aggregate&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But it is generating multiple test reports.</p>
  
  <p>I also tried <a href="https://stackoverflow.com/questions/20884672/aggregate-surefire-reports-of-maven-project-hierarchy-as-xml-for-eclipse">Aggregate surefire reports of maven project hierarchy as XML for eclipse?</a> but this doesn't work either.  But again I believe this is only for the report.</p>
  
  <p>Any ideas?  Thanks for any help.</p>