File tree Expand file tree Collapse file tree
precommit/src/main/shell/plugins.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717declare -a MAVEN_ARGS
1818
19- if [[ -z " ${MAVEN_HOME :- } " ]]; then
20- MAVEN=mvn
21- else
19+ if [[ -e " ${BASEDIR} /mvnw " ]]; then
20+ MAVEN=${BASEDIR} /mvnw
21+ elif [[ -n " ${MAVEN_HOME :- } " ]] ; then
2222 MAVEN=${MAVEN_HOME} /bin/mvn
23+ else
24+ MAVEN=mvn
2325fi
2426
2527MAVEN_CUSTOM_REPOS=false
@@ -78,7 +80,7 @@ function maven_ws_replace
7880function maven_usage
7981{
8082 maven_ws_replace
81- yetus_add_option " --mvn-cmd=<file>" " The 'mvn' command to use (default \$ {MAVEN_HOME}/bin/mvn, or 'mvn')"
83+ yetus_add_option " --mvn-cmd=<file>" " The 'mvn' command to use (default \$ {BASEDIR}/mvnw, \$ { MAVEN_HOME}/bin/mvn, or 'mvn')"
8284 yetus_add_option " --mvn-custom-repos" " Use per-project maven repos"
8385 yetus_add_option " --mvn-custom-repos-dir=<dir>" " Location of repos, default is '${MAVEN_CUSTOM_REPOS_DIR} '"
8486 yetus_add_option " --mvn-deps-order=<bool>" " Disable maven's auto-dependency module ordering (Default: '${MAVEN_DEPENDENCY_ORDER} ')"
You can’t perform that action at this time.
0 commit comments