12. Maven
Programming Project 2021/22

12.10. Wrapper

An approach to distribute our projects with Maven embedded, which allows your project to be compiled even by people who do not have Maven in their systems.

We can add a maven wrapper to our projects by executing:

$ mvn wrapper:wrapper

This should add to our current directory the following items.

  • mvnw: a bash script for unix-based systems
  • mvnw.cmd: a cmd script for Windows
  • .mvn/: a hidden directory with maven wrapper files