我对竹子中的FindBug Plugin有一些问题。我想尝试在竹子中使用FindBug插件。我的项目是从SVN仓库中获取的,并使用maven3构建。我导入了插件,并在默认作业问题的配置中设置了杂项。
竹子应该在哪里寻找FindBugs分析输出?
我将like FindBugs输出目录设置为"c:\fb_report\"
您可以在添加的图像上看到的内容
imageshack.us/photo/my-images/37/miscalleneous.png/
我构建他在控制台上写这篇文章
14-Nov-2011 10:38:11 Parsing test results...
14-Nov-2011 10:38:11 Finished task 'Maven 3.x'
14-Nov-2011 10:38:11 Running post build plugin 'NCover Results Collector'
14-Nov-2011 10:38:11 Running post build plugin 'Clover Results Collector'
14-Nov-2011 10:38:11 Running post build plugin 'Artifact Copier'
14-Nov-2011 10:38:11 Running post build plugin 'FindBugs Build Processor'
14-Nov-2011 10:38:11 Running post build plugin 'Cleanup Build Processor'
14-Nov-2011 10:38:11 Finalising the build...
14-Nov-2011 10:38:11 Stopping timer.
14-Nov-2011 10:38:11 Build PROJECT1-PLAN-JOB1-1 completed.
14-Nov-2011 10:38:11 Running on server: post build plugin 'NCover Results Collector'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Clover Delta Calculator'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Build Hanging Detection Configuration'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Maven Dependencies Postprocessor'
14-Nov-2011 10:38:11 Running on server: post build plugin 'FindBugs Server Build Processor'
14-Nov-2011 10:38:11 All post build plugins have finished
14-Nov-2011 10:38:11 Generating build results summary...
14-Nov-2011 10:38:11 Saving build results to disk...
14-Nov-2011 10:38:11 Indexing build results...
14-Nov-2011 10:38:11 Finished building PROJECT1-PLAN-JOB1-1.从这件事开始,插件就已经在构建过程中成功运行了。然后,如果我转到default job并单击选项卡findbugs,他只向我显示一个图表,并且没有显示任何其他统计数据,如下所示:
https://studio.plugins.atlassian.com/wiki/display/BFIND/FindBugs+Plugin
且在作业的其他中设置的目录为空。
imageshack.us/photo/my-images/402/findbugs.png/
我在大约30个版本上测试了这个插件。什么都没有改变。我尝试在report选项卡中生成报告,这也只显示了一个图形。
imageshack.us/photo/my-images/607/reports.png/
我现在不知道我做了什么坏事。
发布于 2012-09-20 05:18:18
生成FindBugs报告文件是您的计划责任。竹子FindBugs插件只分析FindBugs报告文件中的数据。
尝试将以下内容添加到您的pom.xml:
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5</version>
<configuration>
<xmlOutput>true</xmlOutput>
<xmlOutputDirectory>target/findbugs</xmlOutputDirectory>
</configuration>
</plugin>
...
</plugins>
</build>此外,您还需要将findbugs:findbugs目标添加到您的Maven任务配置中。
请查看更新的plugin documentation -它应该包含更多关于这方面的详细信息。
https://stackoverflow.com/questions/8210514
复制相似问题