Skip to content
Ameen Abozaid
In reviewJNR-002-L07

Reproducible builds and the Maven Wrapper

  • Lesson 7 of 8
  • 11 min read
  • Junior
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 verify without installing Maven.
Draft outline details

Demonstration

text
./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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.