gpt4 book ai didi

java - 在 Maven 和 Eclipse 中获取相同的 Findbugs 错误

转载 作者:搜寻专家 更新时间:2023-10-30 21:12:43 27 4
gpt4 key购买 nike

我设法在我的 maven 构建过程中运行了 findbugs,并且我还在 eclipse 中配置了 findbugs。然而,当在 Eclipse 和 Maven 中运行时,我遇到了不同的错误,而且我似乎找不到一个设置,使 Eclipse 和 Maven 中的错误数量匹配。

我的 Maven 设置是这样的:

<version>2.5.2</version>
<configuration>
<failOnError>false</failOnError>
<threshold>Normal</threshold>
<effort>Default</effort>
<xmlOutput>true</xmlOutput>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
</configuration>

在 Eclipse 中我有:

Findbugs Version: 2.0.1
Analysis Effort: Default
Minimum Rank to report: 20
Minimum Confidence to Report: Medium
Reported categories: All

通过这些设置,我在 Eclipse 中发现了更多错误。我的主要问题是,我什至无法匹配 Maven 和 Eclipse 之间的不同设置。

最佳答案

您可以尝试使用 m2e-code-quality ,其中包括一个 m2eclipse“连接器”,该连接器应确保您的 Eclipse FindBugs 配置与您的 pom 中指定的配置相匹配。

关于java - 在 Maven 和 Eclipse 中获取相同的 Findbugs 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13135822/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com