Skip to content

Commit

Permalink
[MWRAPPER-85] mention distributionType
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell authored and slawekjaranowski committed Mar 5, 2023
1 parent b91c0c0 commit ed02d0f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/site/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,25 @@ binary file `.mvn/wrapper/maven-wrapper.jar`. It is used to bootstrap the
download and invocation of Maven from the wrapper shell scripts.

If your project is not allowed to contain binary files like this, you can
configure your version control system to exclude checkin/commit of the wrapper
jar.
use the source distribution of the maven wrapper which adds a file
`.mvn/wrapper/MavenWrapperDownloader.java` file instead:

```shell
# defaults to bin
mvn wrapper:wrapper -Dtype=source
```

You can also chose to opt out of all additional resources except the wrapper scripts:

```shell
mvn wrapper:wrapper -Dtype=script
```

If the JAR is not found to be available by the scripts they will attempt to
download the file from the URL specified in
`.mvn/wrapper/maven-wrapper.properties` under `wrapperUrl` and put it in place.
The download is attempted via curl, wget and, as last resort, by compiling the
`./mvn/wrapper/MavenWrapperDownloader.java` file and executing the resulting
`.mvn/wrapper/MavenWrapperDownloader.java` file and executing the resulting
class.

If your Maven repository is password protected you can specify your username via
Expand Down

0 comments on commit ed02d0f

Please sign in to comment.