You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Romain manni-Bucau (JIRA)" <ji...@codehaus.org> on 2012/02/17 13:57:02 UTC

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Romain manni-Bucau created MNG-5247:
---------------------------------------

             Summary: 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


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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Boni Gopalan (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315094#comment-315094 ] 

Boni Gopalan edited comment on MNG-5247 at 12/5/12 11:45 PM:
-------------------------------------------------------------

since it is a JVM switch setting -Djava.net.useSystemProxies=true to MAVEN_OPTS should make it work for all plugins (and anything else from within the code).

OOPS : Looks like there are more complications.  Will work only for classes using java.net.* for network access.
                
      was (Author: devasur):
    since it is a JVM switch setting -Djava.net.useSystemProxie=true to MAVEN_OPTS should make it work for all plugins (and anything else from within the code).
                  
> 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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Boni Gopalan (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315094#comment-315094 ] 

Boni Gopalan edited comment on MNG-5247 at 12/6/12 12:10 AM:
-------------------------------------------------------------

since it is a JVM switch setting -Djava.net.useSystemProxies=true to MAVEN_OPTS should make it work for all plugins (and anything else from within the code).

EDIT:
adding -Djava.net.useSystemProxies=true appended to MAVEN_OPTS did not work.  However clean install -Djava.net.useSystemProxies=true works well with proxy on or proxy off.  Surprised.  I am sure I am missing something fundamental about the way MAVEN_OPTS is interpreted.  Is it to set only the -X parameters?

                
      was (Author: devasur):
    since it is a JVM switch setting -Djava.net.useSystemProxies=true to MAVEN_OPTS should make it work for all plugins (and anything else from within the code).

OOPS : Looks like there are more complications.  Will work only for classes using java.net.* for network access.
                  
> 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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Romain manni-Bucau (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315093#comment-315093 ] 

Romain manni-Bucau commented on MNG-5247:
-----------------------------------------

Hmm, not sure it can be done for all plugin (got the need for dockbook and ant plugins)

Moreover i use a script to switch proxy in my conf file so the pain is just when it is not propagated in my builds
                
> 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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Boni Gopalan (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315094#comment-315094 ] 

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

since it is a JVM switch setting -Djava.net.useSystemProxie=true to MAVEN_OPTS should make it work for all plugins (and anything else from within the code).
                
> 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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Boni Gopalan (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] (MNG-5247) be able to propagate the proxy from settings.xml to plugins

Posted by "Romain manni-Bucau (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain manni-Bucau updated MNG-5247:
------------------------------------

    Attachment: MAVEN-PLUGINS-PROXY.diff

attached plugin was generated from https://svn.apache.org/repos/asf/maven/plugins/trunk

it adds maven-proxy-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