Over time the java project could be messy. Programmers add and remove libraries. They remove codes but left the dependency
in the pom.xml untouched.
Is there a tool out there that can:
dependency
within the pom.xml and perhaps suggest
those entries for removal? scope
of a
dependency? Run mvn dependency:analyze
. It shows you all dependencies that are in the POM, but that are not used in the source code. It furthermore lists transitive dependencies which you accidentally used as direct dependencies.