Reproducible builds and the Maven Wrapper
On This Lesson 4 topics
The content for this lesson is written and waiting for review. The outline below shows what it covers. It will be published once it is approved.
In this lesson
make the build give the same result on every machine.
Planned topics
- A reproducible build: the same source gives the same output anywhere.
- Fix every version; avoid ranges and
LATEST. - The Maven Wrapper (
mvnw) downloads the exact Maven version the project needs. - Commit the wrapper files to Git.
- New teammates run
./mvnw verifywithout installing Maven.
Draft outline details
Demonstration
./mvnw verify (Linux/macOS)
mvnw.cmd verify (Windows)Check your understanding
Why use mvnw instead of mvn?
Show answer
Everyone uses the same Maven version.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.