findbugs - How can i install findbugs in netbeans 11.3
问题描述
-I can not find findbugs in availiable plugins to install
if i try source-->inspect and choose to install findbugs from there netbeans says that findbugs can not be downloaded
is there a way to activate it?
解决方案
先说几个基本点:
- FindsBugs 插件包含在 NetBeans 11.2 中,但它不在 11.3 中,我在尝试在 NetBeans 11.3 上安装它时得到与您相同的结果(“ ...模块尚未下载”)。请参阅NetBeans 团队成员的评论:“查找错误模块尚未捐赠,但应在以后捐赠”。
- 几年前,我在未解决的 FindBugs 上提出了 NetBeans Report Bug Report 576:FindBugs 插件适用于 JDK8 但不适用于 JDK10。因此,即使您可以安装它,我认为它对于使用比 JDK 8 更新的任何 Java 版本的代码都是无用的。甚至 FindBugs 网站也只声称“分析为任何 Java 版本编译的程序,从 1.0 到 1.8 ” .
- 尽管如此,FindsBugs 已不复存在。2016 年 11 月 2 日:“我真的很抱歉,但 FindBugs 项目目前的形式已经死了”。所以不要再使用 FindBugs 了。它没有得到维护或支持。
- 而是使用 SpotBugs,它是“ FindBugs 的精神继承者”。
话虽如此,据我所知,也没有适用于 SpotBugs 的 NetBeans 插件,尽管一位勇敢的开发人员记录了如果您愿意的话如何自己做。
但是,如果您有 Maven 或 Gradle 项目,则可以使用 SpotBugs:
- Maven 插件被限制使用 JDK 8 来运行这个插件。这是 Spotbugs 提出的要求。我没试过。
- 您可以从此处获取 SpotBugs 的 Gradle 插件。我也没有尝试过这些。
推荐阅读
- django - 如何在 django as_view() 方法中添加自己的属性?
- java - 从 xlsx 文件获取数据时无法从文本单元格获取数值
- arraylist - arrayList 处理与字符串处理的延迟
- julia - 在 Julia 中创建一个任意大小的 `nothing` 数组
- react-native - 长 Flatlist 中的视频使应用程序崩溃并且性能不佳
- json - Angular 8 JSON.parse 没有完全/公正地解析
- c# - IHostedService 可用于 Azure Functions 应用程序吗?
- amazon-sagemaker - 平台错误:SageMaker 管道通道超时
- raspberry-pi3 - SIM900 - 使用 Gammu 发送超过 160 个字符的短信
- python - 如何解压 Flask Sqlaclhemy 中使用的枚举值?