问题描述
我有一个 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 项目中不必要的依赖项的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!