Maven:how to check which jars are not being used at all

守給你的承諾、 提交于 2020-01-01 06:36:10

问题


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?

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


回答1:


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



来源:https://stackoverflow.com/questions/8133164/mavenhow-to-check-which-jars-are-not-being-used-at-all

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!