测试覆盖率设置
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<!-- 报告格式 -->
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
<executions>
<execution>
<!-- 运行周期 -->
<id>cobertura-report</id>
<!-- 目标 -->
<goals>
<goal>cobertura</goal>
</goals>
<!-- 绑定在test操作后 -->
<phase>test</phase>
</execution>
</executions>
</plugin>