gpt4 book ai didi

maven - Findbugs 和 Maven 3.x

转载 作者:行者123 更新时间:2023-12-02 00:13:55 29 4
gpt4 key购买 nike

有人设法让 findbugs 2.3.1、2.3.2-SNAPSHOT 或 2.4-SNAPSHOT 与 Maven 3.x 项目一起使用吗?

我总是得到:

[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.4-SNAPSHOT:findbugs (default-cli) on project cular-db: An error has occurred in FindBugs Report report generation. Could not find matching constructor for: org.codehaus.mojo.findbugs.FindbugsReportGenerator(org.codehaus.doxia.module.xhtml.XhtmlSink, java.util.PropertyResourceBundle, java.io.File, org.apache.maven.doxia.tools.DefaultSiteTool)

我尝试了所有最新的可能版本。我使用 findbugs:fingbugs 还是仅使用网站目标并不重要。指定为

    <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs.version}</version>
<configuration>
<threshold>High</threshold>
<effort>Default</effort>
</configuration>
</plugin>

最佳答案

2011年3月20日,Findbugs 2.3.2发布,支持Maven 3。

Announcement

Release Notes

这意味着您应该能够在 Maven 3 中使用该插件的最新非快照版本(版本 2.3.2 或更高版本)。

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
</plugin>

关于maven - Findbugs 和 Maven 3.x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4649749/

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