Finding unused jars used in an eclipse project

前端 未结 5 734
情歌与酒
情歌与酒 2020-11-28 02:52

Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?

5条回答
  •  失恋的感觉
    2020-11-28 03:23

    UCDetector does not help for this : It does not work on JARs. And for classpathHelper, I wan't able to find out an easy way just to list the orphan JARs (BTW, if someone has a tutorial for this, i am interested).

    So, if you are also using Maven as I do, I find out this great Maven plugin, and I would like to share this solution with you. Just type :

    mvn dependency:analyze
    

    And you will instantly get a list of unused JARs in your dependencies. Very handy !

提交回复
热议问题