Using the following configuration, the site reports end up
C:/opt/builds/releases/${branch}/${module}/siteReports as I expect. The
test reports, however, keep getting placed under target/surefire-reports.
I've tried with and without the reportsDirectory and I've tried reversing
the order of the maven-site-plugin and the maven-surefire-report-plugin
stanzas inside of plugins.
Can somebody please tell me how I can make the maven-surefire-report-plugin
put the test reports in a directory that I specify?
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<outputDirectory>C:/opt/builds/releases/${branch}/$
{module}/siteReports</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.5</version>
<inherited>false</inherited>
<configuration>
<reportsDirectory>C:/opt/builds/releases/${branch}/$
{module}/testReports</reportsDirectory>
<outputDirectory>C:/opt/builds/releases/${branch}/$
{module}/testReports</outputDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
Many thanks,
Tony