如果只要xml、txt报告,只需要maven-surefire-plugin插件,生成的报告在target的surefire-reports下面
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
如果要html报告,只需要maven-surefire-report-plugin插件,生成的报告在target的site里面,surefire-report.html
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-