【发布时间】:2021-10-07 22:58:01
【问题描述】:
它试图解析这些文件夹,但我只需要它来检测主要和测试,并排除目标。
我使用 JUnit、SonarQ、Maven 和 Jacoco。
我有很多 DTO 和其他我不想添加的类...
Jacoco 的插件:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/target/generated-sources/xjc/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: java spring-boot junit5 spring-test jacoco