Wrapper (Maven)
Introduction
The Maven Wrapper is an easy way to ensure a user of your Maven build has everything necessary to run your Maven build.
Reference
Maven Wrapper
Git: https://github.com/apache/maven-wrapper
Site: https://maven.apache.org/wrapper
JIRA: https://issues.apache.org/jira/projects/MWRAPPER/issues/MWRAPPER
Maven Releases History
https://maven.apache.org/docs/history.html
Configuring Apache Maven
https://maven.apache.org/configure.html
Install & upgrade (Maven Wrapper)
Maven >=3.9
Install
mvn wrapper:wrapper -Dtype=bin -Dmaven=3.9.8
Upgrade
./mvnw wrapper:wrapper -Dtype=bin -Dmaven=3.9.8
Maven <3.8
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
.mvn/jvm.config
See reference 'Configuring Apache Maven'. Eg:
-XX:MaxRAMPercentage=45 -XX:MaxMetaspaceSize=200m -XX:+UseStringDeduplication -XX:+ExitOnOutOfMemoryError