Maven
Apache Maven is a build automation and project management tool that manages dependencies and build lifecycles, especially for Java and other JVM projects.
Spring in Action, Sixth Edition
Maven is a build automation and dependency-management tool for Java projects.
- How it is used
- Builds and runs a Spring Boot Java application while managing its declared dependencies.
- How deep it goes
- Explains project layout, pom.xml configuration, wrapper commands, packaging, running, and testing without detailing Maven internals.
- Examples
- Uses the Taco Cloud project, pom.xml, Maven Wrapper commands, an executable JAR, and a baseline application test.
- What you can do after
- Operate/configure Maven through pom.xml and Maven Wrapper commands to package, run, and test a Spring Boot application.
Fast by Default
Maven is a Java build automation and dependency-management tool based on convention-driven project configuration.
- How it is used
- Uses dependency analysis during Java builds to control dependency growth and packaged artifact size.
- 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.
BDD in Action, Second Edition
Maven is a build automation and project management tool widely used for Java projects.
- How it is used
- Builds and runs Java projects while supporting repeatable automated acceptance-test execution.
- How deep it goes
- Shows project setup, conventional directories, and verification, but does not detail Maven configuration internals.
- Examples
- Uses a Serenity Cucumber starter project, train-timetables repository, standard directories, and the `mvn verify` command.
- What you can do after
- Operate/configure a Java acceptance-testing project and verify its build from the command line.
Also covered in
- Learn Docker in a Month of Lunches, Second Edition
- Spring Microservices in Action
- Quarkus in Action
- ActiveMQ in Action
- Kotlin in Action, 2E
- Software Testing with Generative AI
- Clean Applications with Hexagonal ArchitectureIn early access (MEAP)
What to know first
- JAR fileA JAR (Java Archive) is a ZIP-based file format that packages Java classes, resources, and metadata for distribution or execution.
- KotlinKotlin is a statically typed general-purpose programming language that targets the JVM and other platforms and interoperates with Java.
Related concepts
- container imageproduces · A container image is a packaged filesystem and metadata artifact from which a container can be created and run.
- Gradlealternative to · Gradle is an open-source build automation system for defining and executing software build tasks and managing project dependencies.
- project object modelconfigured by · A Maven Project Object Model (POM) file is an XML project descriptor that declares project metadata, dependencies, and build configuration.
- dependency directionimplements · Dependency direction is a constraint specifying which software components or architectural layers may depend on one another.
Questions about Maven
What is Maven?
Apache Maven is a build automation and project management tool that manages dependencies and build lifecycles, especially for Java and other JVM projects.
Which Manning books explain Maven?
Spring in Action, Sixth Edition, Fast by Default and BDD in Action, Second Edition.
What should I know before learning Maven?
Manning books that teach Maven usually introduce Java, Groovy, JAR file and Kotlin first.
What is the difference between Maven and archunit rule?
Apache Maven is a build automation and project management tool that manages dependencies and build lifecycles, especially for Java and other JVM projects. An ArchUnit rule is a programmatic constraint that checks structural or dependency properties of Java code.
What is Maven also called?
Maven is also called mvn.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


