Maven is a Java build automation and dependency-management tool whose dependency analysis exposes what enters a project and how it affects packaged artifacts. section 8.2.2
Use Maven dependency analysis to:
- Run mvn dependency:tree to trace every dependency and its path into the project. section 8.2.2
- Run mvn dependency:analyze to identify declared dependencies that the code does not use. section 8.2.2
- Inspect packaged JAR contents and investigate large libraries, embedded assets, reflection-heavy packages, and platform-specific native binaries. section 8.2.2
du -sh BOOT-INF/lib/* | sort -h | tail -20
Sorts Spring Boot JAR libraries by size to reveal dependencies that may need lighter alternatives. section 8.2.2


