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 systemsmvnw.cmd
: a cmd script for Windows.mvn/
: a hidden directory with maven wrapper files