1

我有一个可用的 jacoco maven 插件,并希望排除 lombok 生成的代码。我找到了选项 LOMBOK.DATA,虽然我不知道如何处理它。

将其放入 exclude 不会影响任何事情。

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.6.201602180812</version>
  <configuration>
    <exclude>                                
      <exclude>LOMBOK.DATA</exclude>
    </excludes>
  </configuration>
  <executions>
    <execution>
      <id>prepare-agent</id>
      <goals>
        <goal>prepare-agent</goal>
      </goals>
    </execution>
    <execution>
      <id>report</id>
      <goals>
        <goal>report</goal>
      </goals>
      <phase>prepare-package</phase>
    </execution>
  </executions>
</plugin>
4

0 回答 0