mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-26 17:01:53 +08:00
fix test dependency downloading
This commit is contained in:
@@ -238,8 +238,9 @@ public class PayloadsTest {
|
|||||||
private static URL[] getDependencyUrls(String[] dependencies) throws MalformedURLException {
|
private static URL[] getDependencyUrls(String[] dependencies) throws MalformedURLException {
|
||||||
File[] jars = dependencies.length > 0
|
File[] jars = dependencies.length > 0
|
||||||
? Maven.configureResolver()
|
? Maven.configureResolver()
|
||||||
.withMavenCentralRepo(true)
|
.withRemoteRepo("central", "https://repo1.maven.org/maven2/", "default")
|
||||||
.withRemoteRepo("jenkins", "https://repo.jenkins-ci.org/public/", "default")
|
.withMavenCentralRepo(false)
|
||||||
|
// .withRemoteRepo("jenkins", "https://repo.jenkins-ci.org/public/", "default")
|
||||||
.resolve(dependencies).withoutTransitivity().asFile()
|
.resolve(dependencies).withoutTransitivity().asFile()
|
||||||
: new File[0];
|
: new File[0];
|
||||||
URL[] urls = new URL[jars.length];
|
URL[] urls = new URL[jars.length];
|
||||||
@@ -250,6 +251,7 @@ public class PayloadsTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
|
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
||||||
StdIoRedirection.init();
|
StdIoRedirection.init();
|
||||||
Logging.init();
|
Logging.init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user