新增jacoco插件支持sonarqube展示单元测试覆盖率

This commit is contained in:
gaoqr
2025-09-11 18:38:57 +08:00
parent a1f9751bd1
commit c569ec1dad
+12
View File
@@ -104,6 +104,11 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<configuration>
<excludes>
<exclude>lib/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
@@ -213,6 +218,13 @@
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>