jfrog / build-info

Artifactory's open integration layer for CI build servers
https://www.buildinfo.org
Apache License 2.0
148 stars 157 forks source link

Support multiple no proxy hosts in Maven #801

Closed yahavi closed 3 months ago

yahavi commented 3 months ago

Fix https://github.com/jfrog/jfrog-cli/issues/2638

The NO_PROXY pattern for specifying multiple hosts is a comma-separated list: NO_PROXY=host1.jfrog.io,host2.jfrog.io https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html

In Java, the system property http.nonProxyHosts uses a pipe-separated list for multiple hosts: -Dhttp.nonProxyHosts=host1.jfrog.io|host2.jfrog.io https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

This pull request adjusts the http.nonProxyHosts value by replacing commas with pipes.