usage of MVNW_REPOURL for wrapper download

This commit is contained in:
Piotrek Żygieło 2019-02-22 22:40:56 +01:00 committed by rfscholte
parent af829f1fa5
commit 5762f9d37b
1 changed files with 1 additions and 1 deletions

2
maven-wrapper/mvnw vendored
View File

@ -211,7 +211,7 @@ else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
if [ "$MVNW_REPOURL" = true ]; then
if [ -n "$MVNW_REPOURL" ]; then
jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.2/maven-wrapper-0.5.2.jar"
else
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.2/maven-wrapper-0.5.2.jar"