Maven Wrapper Distribution provides the distribution zip files containing mvnw/mvnw.cmd scripts and everything that has to be installed into a project wanting to use Maven Wrapper.
Distributions types share the same base structure:
mvnw mvnw.cmd .mvn/wrapper/maven-wrapper.properties
but every distribution has specific content to manage different strategies to get maven-wrapper.jar:
- script (default): mvnw/mvnw.cmd scripts will download maven-wrapper.jar with wget or curl on Unix or PowerShell on Windows
- bin: no need to download maven-wrapper.jar binary, it is directly provided and used from project source tree:
.mvn/wrapper/maven-wrapper.jar
- source: mvnw/mvnw.cmd scripts will compile MavenWrapperDownloader.java source then run the class to download maven-wrapper.jar:
.mvn/wrapper/MavenWrapperDownloader.java
Distribution can be installed in a project either by unpacking zip archive by hand, or by using wrapper:wrapper.