【发布时间】:2017-08-22 09:56:17
【问题描述】:
我试图忽略一些生成的类,这些类被忽略了。但是如果这些类有内部类,尽管父类被排除在外,这些类仍然会被包括在内。这是我的配置:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*DB.*</exclude>
<exclude>**/*DTO.*</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
尝试通过排除 **/*DB.*.* 来使用 ParentClass.NestedClass 的标准 Java 名称约定没有帮助。
【问题讨论】:
标签: java code-coverage inner-classes jacoco