【发布时间】:2012-01-23 18:04:29
【问题描述】:
是否有人设法配置 findbugs Maven 3.x 插件以生成 xml 和 html 报告? (我想要一个用于 Jenkins 的 xml 和一个用于在提交前检查的 html)
我在网络上看到了很多关于设置的文档,但其中大部分似乎是针对 Maven 2.x 的,我知道它的配置不同(令人讨厌的是 2.x)。 x 配置被 3.x 默默忽略)。我是 Maven 新手,所以我不确定自己是做错了什么还是按照旧的说明进行操作。
我的 pom 包含以下内容:
</build>
</plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.3</version>
<configuration>
<!-- findbugs:help -Ddetail=true for outputDirectory:
Location where generated html will be created.
-->
<outputDirectory>${project.build.directory}/findbugs</outputDirectory>
<xmlOutput>true</xmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
<xmlOutputDirectory>target/findbugs</xmlOutputDirectory>
<failOnError>false</failOnError>
</configuration>
</plugin>
</plugins>
</build>
【问题讨论】: