我正在使用此插件运行 findbugs 和 maven,然后构建失败,即使我通过 Eclipse 运行最大设置为 20 的查找错误,我得到 0 个错误。现在它以 33 失败。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<threshold>Ignore</threshold>
<xmlOutput>true</xmlOutput>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
两个问题:
为什么 Eclipse Findbugs 插件和 Maven Findbugs 插件之间存在如此差异?
我能否以某种方式让 Eclipse Findbugs 加载从 Maven Findbugs 生成的 findbugscheck.xml,以便我的代码自动突出显示。通过xml文件钓鱼非常烦人。