删除Java项目中不必要的依赖项的工具 [英] Tool to remove unnecessary dependencies in a Java project

查看:510
本文介绍了删除Java项目中不必要的依赖项的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java项目,它的库目录中有大量的JAR,它们在构建时都包含在生成的包中。但是,我知道,这些库中的一些从未在项目中引用。



有没有可以搜索项目中没有引用的库的工具?我想在这个意义上必须有一些东西。



BTW,一个Eclipse插件将会很棒。



编辑:我选择和ClassDep一起去,因为它是唯一有用的建议。但是,我有一些麻烦:请查看这个问题

解决方案

ClassDep (从Sun,在Jini开发工具包中)将为您执行此操作。


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.

BTW, an Eclipse plugin would be awesome.

EDIT: 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 (from Sun, in the Jini development kit) will do this for you.

这篇关于删除Java项目中不必要的依赖项的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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