Am 2018-05-20 um 22:28 schrieb Sylwester Lachiewicz:
Hi,
Difference between repo1.maven.org and maven.apache.org is that out site
accepts only tlsv1.2 (
https://www.ssllabs.com/ssltest/analyze.html?d=maven.apache.org) where
Central now accepts tls 1.0, 1.1, 1.2
https://www.ssllabs.com/ssltest/analyze.html?d=repo1.maven.org
I think TLSv1.2 can be enabled for client connections
https://bugs.openjdk.java.net/browse/JDK-7093640 from Java 1.7u95 only with
property jdk.tls.client.protocols.
Java 1.7u80 is latest public version available and releases after 1.7.0_80
are only available to Oracle Customers. I found details here:
https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https
So I think only option is to switch to Java 8 only and with Maven Central
switch to TLSv1.2 only we can just forget about java 7 for Maven projects
builds..
BR
Sylwester
sob., 19 maj 2018 o 11:41 użytkownik Hervé Boutemy <[email protected]>
napisał:
Maven master branch build is failing on ASF Jenkins for one week
looks related to TLS 1.2 only support on https://www.apache.org/, when
the build is currently done with JDK 7u80 which has TLS 1.2 disabled by
default
I tried to enable TLS 1.2 adding "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
option, but it does not work (works for dependencies download through Maven
Artifact Resolver + Wagon, but the failing code uses directly
java.net.URL.openStream() )
IMHO, the simplest solution is to update our Maven core Jenkinsfile to
build with Java 8, since it's completely decoupled from the ITs run
(happening with misc JDK and OSes)
I concur, works for me with https://www.azul.com/downloads/zulu/:
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
2018-02-24T20:49:05+01:00)
Maven home: D:\Entwicklung\Programme\apache-maven-3.5.3\bin\..
Java version: 1.7.0_181, vendor: Azul Systems, Inc.
Java home: C:\Program Files\Zulu\zulu-7\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]