The Maven Wrapper is an easy way to ensure a user of your Maven build has everything necessary to run your Maven build.
Git: https://github.com/apache/maven-wrapper
Site: https://maven.apache.org/wrapper
JIRA: https://issues.apache.org/jira/projects/MWRAPPER/issues/MWRAPPER
https://maven.apache.org/docs/history.html
https://maven.apache.org/configure.html
Install
mvn wrapper:wrapper -Dtype=bin -Dmaven=3.9.11
Upgrade
./mvnw wrapper:wrapper -Dtype=bin -Dmaven=3.9.11
Using https://github.com/takari/takari-maven-plugin
Install
mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.8
Upgrade
./mvnw -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.8
See reference 'Configuring Apache Maven'. Eg:
-XX:MaxRAMPercentage=45 -XX:MaxMetaspaceSize=200m -XX:+UseStringDeduplication -XX:+ExitOnOutOfMemoryError