1818@ REM ----------------------------------------------------------------------------
1919
2020@ REM ----------------------------------------------------------------------------
21- @ REM Apache Maven Wrapper startup batch script, version 3.3.3
21+ @ REM Apache Maven Wrapper startup batch script, version 3.3.4
2222@ REM
2323@ REM Required ENV vars:
2424@ REM JAVA_HOME - location of a JDK home dir
@@ -122,7 +122,7 @@ set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
122122set MAVEN_MAIN_CLASS = org.apache.maven.cling.MavenCling
123123set WRAPPER_LAUNCHER = org.apache.maven.wrapper.MavenWrapperMain
124124
125- set WRAPPER_URL = " https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.3 /maven-wrapper-3.3.3 .jar"
125+ set WRAPPER_URL = " https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4 /maven-wrapper-3.3.4 .jar"
126126
127127FOR /F " usebackq tokens=1,2 delims==" %%A IN (" %MAVEN_PROJECTBASEDIR% \.mvn\wrapper\maven-wrapper.properties" ) DO (
128128 IF " %%A " == " wrapperUrl" SET WRAPPER_URL = %%B
@@ -136,20 +136,20 @@ if exist %WRAPPER_JAR% (
136136 )
137137) else (
138138 if not " %MVNW_REPOURL% " == " " (
139- SET WRAPPER_URL = " %MVNW_REPOURL% /org/apache/maven/wrapper/maven-wrapper/3.3.3 /maven-wrapper-3.3.3 .jar"
139+ SET WRAPPER_URL = " %MVNW_REPOURL% /org/apache/maven/wrapper/maven-wrapper/3.3.4 /maven-wrapper-3.3.4 .jar"
140140 )
141141 if " %MVNW_VERBOSE% " == " true" (
142142 echo Couldn't find %WRAPPER_JAR% , downloading it ...
143143 echo Downloading from: %WRAPPER_URL%
144144 )
145145
146146 powershell -Command " &{" ^
147- " $webclient = new-object System.Net.WebClient;" ^
148- " if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME% ') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD% '))) {" ^
149- " $webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME% ', '%MVNW_PASSWORD% ');" ^
150- " }" ^
151- " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL% ', '%WRAPPER_JAR% ')" ^
152- " }"
147+ " $webclient = new-object System.Net.WebClient;" ^
148+ " if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME% ') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD% '))) {" ^
149+ " $webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME% ', '%MVNW_PASSWORD% ');" ^
150+ " }" ^
151+ " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL% ', '%WRAPPER_JAR% ')" ^
152+ " }"
153153 if " %MVNW_VERBOSE% " == " true" (
154154 echo Finished downloading %WRAPPER_JAR%
155155 )
0 commit comments