如何在NetBeans 11.3中安装Findbugs [英] How can i install findbugs in netbeans 11.3
本文介绍了如何在NetBeans 11.3中安装Findbugs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-我在要安装的可用插件中找不到findbugs
-I can not find findbugs in availiable plugins to install
如果我尝试使用source->检查并选择从那里安装findbug,netbeans表示无法下载findbug
if i try source-->inspect and choose to install findbugs from there netbeans says that findbugs can not be downloaded
有没有办法激活它?
推荐答案
首先要注意以下几点:
- FindsBugs插件包含在NetBeans 11.2中,但未包含在11.3中,在尝试安装它时,得到的结果与您相同(" ... module尚未下载")在NetBeans 11.3上.请参阅查找错误模块尚未捐赠,但应在以后的捐赠中".
- 几年前,我在FindBugs上提出了NetBeans报告Bug报告576,但尚未解决:任何Java版本,从1.0到1.8 ".
- 无论如何,FindsBugs不再存在.从11/2/16起:" 我真的很遗憾,但是当前形式的FindBugs项目已经死了 ".因此,不再使用FindBugs.它不受维护或支持.
- 请使用SpotBugs,它是" FindBugs的精神继承者".
- The FindsBugs plugin was included in NetBeans 11.2, but it's not in 11.3, and I get the same result as you ("...module has not been downloaded") when trying to install it on NetBeans 11.3. See this comment from a member of the NetBeans team: "The find bugs module hasn't been donated yet it's due in a later donation".
- I raised NetBeans Report Bug Report 576 a couple of years ago on FindBugs that has not been addressed: The FindBugs plugin works with JDK8 but not with JDK10. So even if you could install it, I think it would be useless with code using any version of Java more recent than JDK 8. Even the FindBugs web site only claims to "analyze programs compiled for any version of Java, from 1.0 to 1.8".
- Regardless of all that, FindsBugs is no longer alive. From 11/2/16: "I'm really sorry to say, but FindBugs project in its current form is dead". So don't use FindBugs any more. It's not maintained or supported.
- Instead, use SpotBugs, which is "the spiritual successor of FindBugs".
据我所知,尽管但是,如果您有Maven或Gradle项目,则可以使用SpotBugs:
However, you can use SpotBugs if you have a Maven or Gradle project:
- Maven插件受约束,无法使用JDK 8运行该插件.这是Spotbugs提出的要求.我还没有尝试过.
- 您可以从此处获取 SpotBug的Gradle插件.我也没有尝试过任何一个.
- The Maven plugin is constrained to use JDK 8 to run this plugin. This is a requirement imposed by Spotbugs. I haven't tried that.
- You can get Gradle plugins for SpotBugs from here. I haven't tried any of those either.
这篇关于如何在NetBeans 11.3中安装Findbugs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文