App ignores proxy setting

Problem

App ignores proxy setting -Dhttp.nonProxyHosts


Cause

Oracle JDK ignores apostrophes in the nonProxyHost declaration, but OpenJDK does not:


JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.nonProxyHosts='<host_1_ip_addr>|<host_2_ip_addr>|*.example.com'"

Solution

If you use OpenJDK, get rid of the apostrophes in the host declaration:


JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.nonProxyHosts=<host_1_ip_addr>|<host_2_ip_addr>|*.example.com"



SONAR™, SONARQUBE™ and SONARCLOUD™ are independent and trademarked products and services of SonarSource SA: see sonarsource.com, sonarqube.org, sonarcloud.io.