Maven:如何检查根本没有使用过的罐子 [英] Maven:how to check which jars are not being used at all

查看:63
本文介绍了Maven:如何检查根本没有使用过的罐子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个多战项目,许多人在该项目上工作很多次,仍然将许多未使用的jars指定为依赖项,是否有任何方法可以检查哪些jars根本不被使用,但是仍然被称为依赖项?

We have a multiwar project and with various people working on the project a lot of times, lots of unused jars are still specified as dependencies, is there any way , to check which jars are not used at all, but nonetheless, are being referred to as a dependency?

考虑到Maven如此强大的工具,我希望它已经支持这种东西.

I hope maven already has support for something like this, considering its such a powerful tool.

推荐答案

运行mvn dependency:analyze.它应该做的工作.

Run mvn dependency:analyze. It should do the work.

这篇关于Maven:如何检查根本没有使用过的罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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