commit | 5234fcc20eaf552cec637bc709b797ea2597c769 | [log] [tgz] |
---|---|---|
author | James Z.M. Gao <gaozhiming@360.cn> | Thu Mar 17 00:54:29 2022 +0800 |
committer | Slawomir Jaranowski <s.jaranowski@gmail.com> | Sun Jul 24 16:00:26 2022 +0200 |
tree | 91e138b81cb9b29c7135c048f48c8cc16d66eef9 | |
parent | aae1cfa2830314ffad2844c173389c88dc2dc49d [diff] |
[MWRAPPER-61] Try to skip maven-wrapper.jar, call mvn directly from mvnw. The most behavior of new implementation is the same as original. A new type of `only-script` is added for keep both old and new implementations. For Posix shell `mvnw`: * dists path pattern is shorten to ~/.m2/wrapper/dists/apache-maven-<version>/<java-string-hash> * follow posix shell, test on macos, centos 6/7/8, alpine with bash 3/4/5, zsh, dash * fix all shellcheck.net warnings * inline java source of the fallback way for downloading dist zip fille * improve password security, avoid leaking to command line or trace log * support busybox wget to download maven dist * dependency: - a posix shell at /bin/sh - posix built-in commands such a [, echo and printf - directory operation commands: mktemp, mkdir, mv, rm - cygpath if Cygwin or MinGW - one of three: wget, curl or jdk 1.7+ - one of two: unzip or tar + gzip For windows cmd batch `mvnw.cmd`: * dists path pattern is shorten to ~/.m2/wrapper/dists/apache-maven-<version>/<md5-hash> * the main functions of start, download and install parts are implemented via powershell, which is preinstalled since Win7 SP1 * fix warnings given by powershell PSScriptAnalyzer * dependency: - cmd - powershell 5.1+
You have found a bug or you have an idea for a cool new feature? Contributing code is a great way to give something back to the open source community. Before you dig right into the code, there are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
git diff --check
before committing.[MWRAPPER-XXX] - Subject of the JIRA Ticket Optional supplemental description.
mvn -Prun-its verify
to assure nothing else was accidentally broken.If you plan to contribute on a regular basis, please consider filing a contributor license agreement.
For changes of a trivial nature to comments and documentation, it is not always necessary to create a new ticket in JIRA. In this case, it is appropriate to start the first line of a commit with ‘(doc)’ instead of a ticket number.