删除 Java 项目中不必要的依赖项的工具

Tool to remove unnecessary dependencies in a Java project(删除 Java 项目中不必要的依赖项的工具)
本文介绍了删除 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 项目中不必要的依赖项的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How can create a producer using Spring Cloud Kafka Stream 3.1(如何使用Spring Cloud Kafka Stream 3.1创建制片人)
Insert a position in a linked list Java(在链接列表中插入位置Java)
Did I write this constructor properly?(我是否正确地编写了这个构造函数?)
Head value set to null but tail value still gets displayed(Head值设置为空,但仍显示Tail值)
printing nodes from a singly-linked list(打印单链接列表中的节点)
Control namespace prefixes in web services?(控制Web服务中的命名空间前缀?)