Skip to content

Commit cee4632

Browse files
[MWRAPPER-85] Mention only-script type for binary less installations
1 parent ed02d0f commit cee4632

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/site/markdown/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ You can also chose to opt out of all additional resources except the wrapper scr
108108
mvn wrapper:wrapper -Dtype=script
109109
```
110110

111+
Another type is the lite implementation of `mvnw`/`mvnw.cmd` scripts which download the maven directly
112+
via wget or curl on *nix, or PowerShell on Windows, then call the original `mvn`/`mvn.cmd`
113+
scripts of the downloaded maven distribution.
114+
This type does not use `maven-wrapper.jar` nor `MavenWrapperDownloader.java`, only the wrapper scripts are required.
115+
116+
```shell
117+
mvn wrapper:wrapper -Dtype=only-script
118+
```
119+
111120
If the JAR is not found to be available by the scripts they will attempt to
112121
download the file from the URL specified in
113122
`.mvn/wrapper/maven-wrapper.properties` under `wrapperUrl` and put it in place.

0 commit comments

Comments
 (0)