From f0233ca0c95f82e465531dee98c88657ea91e197 Mon Sep 17 00:00:00 2001 From: Chris Frohoff Date: Mon, 21 Mar 2022 20:13:49 -0700 Subject: [PATCH] fix test dependency downloading --- src/test/java/ysoserial/test/payloads/PayloadsTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/ysoserial/test/payloads/PayloadsTest.java b/src/test/java/ysoserial/test/payloads/PayloadsTest.java index e2e59cd..6ec7bd1 100644 --- a/src/test/java/ysoserial/test/payloads/PayloadsTest.java +++ b/src/test/java/ysoserial/test/payloads/PayloadsTest.java @@ -238,8 +238,9 @@ public class PayloadsTest { private static URL[] getDependencyUrls(String[] dependencies) throws MalformedURLException { File[] jars = dependencies.length > 0 ? Maven.configureResolver() - .withMavenCentralRepo(true) - .withRemoteRepo("jenkins", "https://repo.jenkins-ci.org/public/", "default") + .withRemoteRepo("central", "https://repo1.maven.org/maven2/", "default") + .withMavenCentralRepo(false) +// .withRemoteRepo("jenkins", "https://repo.jenkins-ci.org/public/", "default") .resolve(dependencies).withoutTransitivity().asFile() : new File[0]; URL[] urls = new URL[jars.length]; @@ -250,6 +251,7 @@ public class PayloadsTest { } public static void main(String[] args) throws IOException { + System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2"); StdIoRedirection.init(); Logging.init();