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) > > Any objection? > > Regards, > > Hervé > > Le vendredi 18 mai 2018, 22:55:37 CEST Apache Jenkins Server a écrit : > > See https://builds.apache.org/job/maven-box/job/maven/job/master/14/ > > > [...] > > > /home/jenkins/jenkins-slave/workspace/maven-box_maven_master-DVEN5KAF4FLE3W > > DK7SWFNYUY4YZ7X45JVWYY6FZT5ZEB3CLWABVQ/build@tmp/withMavenad34b80f/maven-spy-20180518-204908-5204043768156831218729.log > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process > (process-resource-bundles) on project apache-maven: Error rendering > velocity resource. Invocation of method 'getResourceAsFile' in class > org.codehaus.plexus.resource.DefaultResourceManager threw exception > org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not > find resource 'https://www.apache.org/licenses/LICENSE-2.0.txt'. at > remote-resources[line 38, column 26] -> [Help 1] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
