问题
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