From b65c86d10d062555e54eff637a606299efc0ca1e Mon Sep 17 00:00:00 2001 From: Ralph Schaer Date: Wed, 20 Feb 2019 16:46:27 +0100 Subject: [PATCH] On Windows, use TLS 1.2 --- maven-wrapper/mvnw.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-wrapper/mvnw.cmd b/maven-wrapper/mvnw.cmd index 51c7117a53..b5134a9792 100644 --- a/maven-wrapper/mvnw.cmd +++ b/maven-wrapper/mvnw.cmd @@ -141,7 +141,7 @@ if exist %WRAPPER_JAR% ( "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ "}"^ - "$webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ "}" echo Finished downloading %WRAPPER_JAR% )