Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

#94 properly read maven proxy settings #151

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

beskow
Copy link
Contributor

@beskow beskow commented Feb 28, 2018

When executing within the maven lifecycle, some of the proxy configuration from settings.xml is read (to set http.proxyHost, http.proxyPort, http.proxyUser and http.proxyPassword System properties), but for some reason http.nonProxyHosts is not properly set. Since version 8.9.1 of "docker-client", the http.proxyHost by default is used if set, hence dockerfile-maven is affected by this behaviour.

This is a known problem, fixed locally in other plugins (see e.g. https://issues.apache.org/jira/browse/CXF-4710).

This fix is inspired by the CFX fix above, to read the settings.xml and populate all relevant system properties for http proxy usage (and restore previous values after execution).

VCCNET\bbeskow and others added 2 commits February 28, 2018 09:47
Properly set all proxy-related system properties (including http.nonProxyHosts) from maven settings, if useProxy is true.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants