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

Boni Gopalan commented on MNG-5247:
-----------------------------------

Setting SystemVariable <java.net.useSystemProxies> to true works just fine for 
most environments.  The proxy setting under setttings.xml should go away.  At 
least it should move under profiles so that switching proxy is painless.  Don't 
you feel the pain when you move from your work environment to home and suddenly 
you need to go and edit settings.xml for URL connections to work? :(.  This 
works fine.

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <version>2.12.4</version>
                                <configuration>
                                        <systemPropertyVariables>
                                            
<java.net.useSystemProxies>true</java.net.useSystemProxies>
                                        </systemPropertyVariables>
                                </configuration>
                        </plugin>





                
> be able to propagate the proxy from settings.xml to plugins
> -----------------------------------------------------------
>
>                 Key: MNG-5247
>                 URL: https://jira.codehaus.org/browse/MNG-5247
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>            Reporter: Romain manni-Bucau
>         Attachments: MAVEN-PLUGINS-PROXY.diff
>
>
> can be nice if plugins could get proxies defined in settings.xml.
> for surefire a way to do it without modifying the plugin is to set proxy 
> information in user properties (otherwise it doesn't work in forked mode)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to