liveBook · Manning

Maven

As explained in Fast by Default

Maven is a Java build automation and dependency-management tool based on convention-driven project configuration.

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

How Fast by Default covers it

How deep it goes
Traces dependency paths, unused declarations, archive contents, and native payloads, then stops short of choosing replacements.
Examples
Uses mvn dependency:tree, mvn dependency:analyze, and sorted Spring Boot JAR listings.
What you can do after
Diagnose transitive, unused, oversized, and platform-specific dependencies in Java projects.
How it connects
Connects dependency management with Java, JAR files, Gradle, Spring Boot, reflection, and native binaries.

Also explained in

Compare how 3 books explain Maven →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fast by Default. The section links point to the parts of the book it draws on.