FindBugs没有显示发现的错误
|
我之前使用过FindBugs,但没有遇到任何问题,但是这次在Ubuntu Natty上的Eclipse Helios上发现了Narval错误,但未显示。
这是我尝试的方法:
右键单击项目>查找错误>查找错误
查看进度,我发现了3个bug
在“问题”视图中未列出
我尝试使用以下方法进入其自己的角度:打开Perspective> Other> FindBugs,但Bug Explorer为空。
有任何想法来查看这些错误吗?
更新:在Eclipse错误日志中,我看到:
!ENTRY edu.umd.cs.findbugs.plugin.eclipse 2 2 2011-06-18 21:13:24.968
!MESSAGE The following classes needed for FindBugs analysis on project **
were missing:
!SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 2 0 2011-06-18 21:13:24.969
!MESSAGE org.apache.commons.exec.CommandLine
!SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 2 0 2011-06-18 21:13:24.969
!MESSAGE org.apache.commons.exec.DefaultExecutor
!SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 2 0 2011-06-18 21:13:24.969
!MESSAGE org.apache.commons.exec.ExecuteException
更新2:我不知道如何修复Eclipse,但是我找到了一种解决方法。我将findbugs报告添加到maven的pom.xml中
<reporting>
<plugins>
[...]
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.3-SNAPSHOT</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!-- Optional derectory to put findbugs xdoc xml report -->
<xmlOutputDirectory>target/site</xmlOutputDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
以下配置在target / site / findbugs.html中生成HTML报告
没有找到相关结果
已邀请:
3 个回复
薄扩络拜
辽躺
貉骂