【发布时间】:2010-06-14 13:19:41
【问题描述】:
请提供将 findbugs 与 maven 集成的步骤
【问题讨论】:
请提供将 findbugs 与 maven 集成的步骤
【问题讨论】:
使用 Maven Findbugs 插件。示例见插件的usage page。
【讨论】:
FindBugs 查找 Java 程序中的错误。它基于错误模式的概念,以便与 Maven 集成,请将以下内容放在您的插件部分。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!– Optional directory to put FindBugs xdoc xml report –>
<xmlOutputDirectory>target/site</xmlOutputDirectory>
<threshold>High</threshold>
</configuration>
</plugin>
【讨论】: