@@ -120,10 +120,10 @@ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120120set WRAPPER_JAR = " %MAVEN_PROJECTBASEDIR% \.mvn\wrapper\maven-wrapper.jar"
121121set WRAPPER_LAUNCHER = org.apache.maven.wrapper.MavenWrapperMain
122122
123- set DOWNLOAD_URL = " https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/@project.version@/maven-wrapper-@project.version@.jar"
123+ set WRAPPER_URL = " https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/@project.version@/maven-wrapper-@project.version@.jar"
124124
125125FOR /F " usebackq tokens=1,2 delims==" %%A IN (" %MAVEN_PROJECTBASEDIR% \.mvn\wrapper\maven-wrapper.properties" ) DO (
126- IF " %%A " == " wrapperUrl" SET DOWNLOAD_URL = %%B
126+ IF " %%A " == " wrapperUrl" SET WRAPPER_URL = %%B
127127)
128128
129129@ REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@@ -134,19 +134,19 @@ if exist %WRAPPER_JAR% (
134134 )
135135) else (
136136 if not " %MVNW_REPOURL% " == " " (
137- SET DOWNLOAD_URL = " %MVNW_REPOURL% /org/apache/maven/wrapper/maven-wrapper/@project.version@/maven-wrapper-@project.version@.jar"
137+ SET WRAPPER_URL = " %MVNW_REPOURL% /org/apache/maven/wrapper/maven-wrapper/@project.version@/maven-wrapper-@project.version@.jar"
138138 )
139139 if " %MVNW_VERBOSE% " == " true" (
140140 echo Couldn't find %WRAPPER_JAR% , downloading it ...
141- echo Downloading from: %DOWNLOAD_URL %
141+ echo Downloading from: %WRAPPER_URL %
142142 )
143143
144144 powershell -Command " &{" ^
145145 " $webclient = new-object System.Net.WebClient;" ^
146146 " if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME% ') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD% '))) {" ^
147147 " $webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME% ', '%MVNW_PASSWORD% ');" ^
148148 " }" ^
149- " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL % ', '%WRAPPER_JAR% ')" ^
149+ " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL % ', '%WRAPPER_JAR% ')" ^
150150 " }"
151151 if " %MVNW_VERBOSE% " == " true" (
152152 echo Finished downloading %WRAPPER_JAR%
0 commit comments