You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@codehaus.org> on 2011/08/19 01:05:32 UTC

[jira] Commented: (MNG-4802) Maven should by default use the environment defined proxy settings

    [ https://jira.codehaus.org/browse/MNG-4802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276415#comment-276415 ] 

Christian Schulte commented on MNG-4802:
----------------------------------------

There is this section in the ${java.home}/jre/lib/net.properties file since JDK 1.5:

{noformat}
# Whether or not the DefaultProxySelector will default to System Proxy
# settings when they do exist.
# Set it to 'true' to enable this feature and check for platform
# specific proxy settings
# Note that the system properties that do explicitely set proxies
# (like http.proxyHost) do take precedence over the system settings
# even if java.net.useSystemProxies is set to true.

java.net.useSystemProxies=false
{noformat}

Setting this property to true should do exactly this.

> Maven should by default use the environment defined proxy settings
> ------------------------------------------------------------------
>
>                 Key: MNG-4802
>                 URL: https://jira.codehaus.org/browse/MNG-4802
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Settings
>    Affects Versions: 2.2.1
>            Reporter: Hugo Palma
>
> For people that constantly change places of work it's very annoying having to edit the settings.xml files every time.
> It would be great if the environment proxy settings were used when no proxy settings were defined in settings.xml.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira