File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ 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/io/takari/maven-wrapper/0.4.0 /maven-wrapper-0.4.0 .jar" 
123+ set  DOWNLOAD_URL = " https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2 /maven-wrapper-0.4.2 .jar" 
124124FOR  /F " tokens=1,2 delims=="   %%A  IN  (%MAVEN_PROJECTBASEDIR% \.mvn\wrapper\maven-wrapper.properties) DO  (
125- 	 IF  " %%A " == " wrapperUrl"   SET  DOWNLOAD_URL = %%B   
125+      IF  " %%A " == " wrapperUrl"   SET  DOWNLOAD_URL = %%B 
126126)
127127
128128@ REM  Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@@ -131,8 +131,8 @@ if exist %WRAPPER_JAR% (
131131    echo  Found %WRAPPER_JAR% 
132132) else  (
133133    echo  Couldn't find %WRAPPER_JAR% , downloading it ...
134- 	 echo  Downloading from: %DOWNLOAD_URL% 
135-     powershell  -Command " (New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL% ', '%WRAPPER_JAR% ')" 
134+      echo  Downloading from: %DOWNLOAD_URL% 
135+     powershell  -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;  (New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL% ', '%WRAPPER_JAR% ')" 
136136    echo  Finished downloading %WRAPPER_JAR% 
137137)
138138@ REM  End of extension
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments