You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by bm...@apache.org on 2022/12/12 13:07:19 UTC

[maven-wrapper] branch MWRAPPER-85_mention_distributionType created (now 78ff77c)

This is an automated email from the ASF dual-hosted git repository.

bmarwell pushed a change to branch MWRAPPER-85_mention_distributionType
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git


      at 78ff77c  [MWRAPPER-85]_mention_distributionType

This branch includes the following new commits:

     new 78ff77c  [MWRAPPER-85]_mention_distributionType

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-wrapper] 01/01: [MWRAPPER-85]_mention_distributionType

Posted by bm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bmarwell pushed a commit to branch MWRAPPER-85_mention_distributionType
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git

commit 78ff77ce35aa13f4263b60116aaabbbdaf0f5bd8
Author: Benjamin Marwell <bm...@apache.org>
AuthorDate: Mon Dec 12 14:07:01 2022 +0100

    [MWRAPPER-85]_mention_distributionType
---
 src/site/markdown/index.md | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md
index 0eb5175..a950246 100644
--- a/src/site/markdown/index.md
+++ b/src/site/markdown/index.md
@@ -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 -DdistributionType=script 
+```
+
+You can also chose to opt out of all additional resources except the wrapper scripts:
+
+```shell
+mvn wrapper:wrapper -DdistributionType=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