artifactory-maven-plugin icon indicating copy to clipboard operation
artifactory-maven-plugin copied to clipboard

Ignores nonProxyHosts from settings.xml

Open TobiX opened this issue 1 year ago • 3 comments

Describe the bug

The proxy support merged with #64 and included in release 3.6.0 ignores the <nonProxyHosts> setting from settings.xml

Current behavior

Plugin does not consider proxy exceptions when connecting to Artifactory.

Reproduction steps

  1. Consider this settings in Maven's settings.xml:
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.corp.bogus</host>
      <port>80</port>
      <nonProxyHosts>localhost*|127.0.0.1|*.corp.bogus</nonProxyHosts>
    </proxy>
  1. Try to reach an Artifactory server at artifactory.corp.bogus
  2. The plugin tries to connect to the Artifactory server through the proxy and fails

Expected behavior

Plugin should consider proxy exceptions when connecting to Artifactory.

Artifactory Maven plugin version

3.6.0

Operating system type and version

N/A

JFrog Artifactory version

No response

Maven version

3.9.1

TobiX avatar Apr 02 '23 11:04 TobiX

We have the same issue with the plugin due to the fact that is does not handle nonProxyHosts in settings.xml in setupProxy.

lfvjimisola avatar Sep 05 '23 13:09 lfvjimisola

any news about this issue?

jycr avatar Aug 02 '24 00:08 jycr

Same issue here. Any news or workaround?

FDegenaar avatar Aug 21 '24 08:08 FDegenaar