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 项目中不必要的依赖项的工具
基础教程推荐
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
