From 710ee5a64d41076a1ff9a1a39f9ae43b637a44c9 Mon Sep 17 00:00:00 2001 From: Oliver Weyhmueller Date: Tue, 12 Dec 2023 19:02:50 +0000 Subject: [PATCH] fix: set correct property for nonProxyHosts While there are different system properties for http and https proxies, there is only one shared property for proxy exclusions: http.nonProxyHosts Setting https.nonProxyHosts has no effect on any recent JDK Fixes #6283 --- .../owasp/dependencycheck/maven/BaseDependencyCheckMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java b/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java index d2d60b33a31..0ce6cac2bf8 100644 --- a/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java +++ b/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java @@ -2194,7 +2194,7 @@ protected void populateSettings() { System.setProperty("https.proxyPassword", mavenProxy.getPassword()); } if (mavenProxy.getNonProxyHosts() != null && !mavenProxy.getNonProxyHosts().isEmpty()) { - System.setProperty("https.nonProxyHosts", mavenProxy.getNonProxyHosts()); + System.setProperty("http.nonProxyHosts", mavenProxy.getNonProxyHosts()); } }