有没有人设法使用findbugs 2.3.1,2.3.2-SNAPSHOT或2.4-SNAPSHOT来处理Maven 3.x项目?
我总是最终得到:
[错误]无法执行目标org.codehaus.mojo:findbugs-maven-plugin:2.4-SNAPSHOT:项目cular-db上的findbugs(default-cli):FindBugs报告生成中出错.找不到匹配的构造函数: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>
Run Code Online (Sandbox Code Playgroud)
Mat*_*ula 12
在2011/03/20,Findbugs 2.3.2已经发布,Maven 3支持.
这意味着您应该能够使用Maven 3的最新非快照版本的插件(版本2.3.2或更高版本).
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11438 次 |
| 最近记录: |