如何在NetBeans 11.3中安装Findbugs [英] How can i install findbugs in netbeans 11.3

查看:264
本文介绍了如何在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

有没有办法激活它?

推荐答案

首先要注意以下几点:

  • 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:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆