I tried adding this code to my pom.xml
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<outputDirectory>D:/eclipse_ws/reports</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.1</version>
<configuration>
<outputDirectory>D:/eclipse_ws/reports</outputDirectory>
</configuration>
</plugin>
</plugins>
and executing this in windows command prompt
mvn surefire-report:report -DoutputDirectory=D:/eclipse_ws/reports
I am still getting the surefire-report.html report in the target/site/ folder itself. Is it possible to change the directory in the way I did? Did I make any mistake?