Tool to remove unnecessary dependencies in a Java project(删除 Java 项目中不必要的依赖项的工具)
问题描述
我有一个 Java 项目,目前其库目录中有很多 JAR,这些 JAR 都包含在构建时生成的包中.但是,我知道其中一些库从未在项目中引用.
I have a Java project that currently has a lot of JARs in its libraries directory, which are all included in the resulting package when building. I know, however, that some of these libs are never referenced in the project.
是否有可以搜索项目中未引用的库的工具?我想一定有某种意义上的东西.
Is there a tool that can search for libs that are not referenced within the project? I guess there must be something in that sense.
顺便说一句,Eclipse 插件会很棒.
BTW, an Eclipse plugin would be awesome.
我选择使用 ClassDep,因为这是唯一有效的建议.但是,我遇到了一些麻烦:请检查 这个问题
I chose to go with ClassDep because it was the only suggestion that worked. However, I'm having some trouble with it: please check this question
推荐答案
ClassDep(来自 Sun,在 Jini 开发工具包中)将为您完成这项工作.
ClassDep (from Sun, in the Jini development kit) will do this for you.
这篇关于删除 Java 项目中不必要的依赖项的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:删除 Java 项目中不必要的依赖项的工具


基础教程推荐
- 降序排序:Java Map 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01