[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2015-08-29 Thread Michael Schnell (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721394#comment-14721394
 ] 

Michael Schnell commented on WAGON-423:
---

Just as information: There is a small plugin that tries to solve the autoproxy 
problem. Maybe it's helpful as an inspiration for this issue: 
https://github.com/volkertb/autoproxy-maven-plugin

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2015-08-30 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721452#comment-14721452
 ] 

Michael Osipov commented on WAGON-423:
--

I was assuming that this plugin uses proxy vole but rather than having a 
separate component, I'd rather prefer native support in HttpClient.

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-19 Thread Markus Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292174#comment-15292174
 ] 

Markus Bernhardt commented on WAGON-423:


Hi all,

I patched the support of .pac files for proxy configuration (and some other 
strategies to search for proxy settings) into AbstractHttpClientWagon in 
wagon-http.

*How to use it:*
Create an active proxy in your settings.xml file with the host name 
{color:red}*proxy-vole*{color}. This will be the marker for the patched 
wagon-http to automatically detect the hostname and port of your system proxy. 
All other parameters like username or nonProxyHosts will still work as expected.
{code:xml}

auto
true
proxy-vole
http
me
secret
*.intranet

{code}

*Some remarks:*
* I believe the code should be moved to AbstractWagon. Patching it their would 
make the proxy auto detection be usable in any wagon that is using the 
getProxyInfo methods.
* I'm using the proxy-vole library to search for proxy settings. Because this 
library seems to be orphaned and was not available on any Maven repository I 
forked the library, cleaned it up a little bit and deployed it to Central.
* At the moment always the default proxy search strategies for the current 
environment will be used. This could be made configurable, if needed.

*What do you think about this patch?*
*Is there any chance to get this or something like it integrated into maven?*

You can find the patch here:
https://github.com/MarkusBernhardt/maven-wagon/commit/8a084631cfd5d6584f782841d45d0b3fb6348312

You can find proxy-vole here:
https://github.com/MarkusBernhardt/proxy-vole

Have fun,
Markus

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-19 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292183#comment-15292183
 ] 

Michael Osipov commented on WAGON-423:
--

Markus, thanks for the effort but I think that this violates the separation of 
concerns and brings logic into Wagon which belongs to the HTTP client itself. I 
would consider this, as I have written before, to be located in Apache 
HttpClient and not Wagon. Though, I am a HttpClient PMC member, I have no time 
to take care of this, unfortunately.

I thin the entire proxy stuff in Maven has been designed shortsigned and 
sketched too simple. A more sophisticated approach is necessary.

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-19 Thread Markus Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292231#comment-15292231
 ] 

Markus Bernhardt commented on WAGON-423:


Hi Michael, to be honest, I don't understand here 2 things:
* Does that mean the proxy element will be removed from the settings.xml? When?
* Can't there be any solution in Maven until there is a more sophisticated 
solution? 

It makes me really, really sad there is no solution for this in Maven.
It would make my life so much easier.



> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-19 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292788#comment-15292788
 ] 

Michael Osipov commented on WAGON-423:
--

.bq Does that mean the proxy element will be removed from the settings.xml? 
When?

No it doesn't. It is my personal opinion based on the experiences I made over 
the last years. The way it is right now is not sufficient.

You can easily write a Wagon provider and add it as {{}}. Maven 
should pick it up and you are good to go.

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-20 Thread Markus Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292977#comment-15292977
 ] 

Markus Bernhardt commented on WAGON-423:


Thanks for that idea. Will look into it.
Last question: can extensions be configured in settings.xml, or have they to go 
into the pom.xml of every project?

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WAGON-423) Add support of .pac file for proxy configuration

2016-05-20 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293136#comment-15293136
 ] 

Michael Osipov commented on WAGON-423:
--

Either in your {{pom.xml}} or put your library (which overrides the default) 
into {{${maven.home}/lib/ext}} and it should do.

> Add support of .pac file for proxy configuration
> 
>
> Key: WAGON-423
> URL: https://issues.apache.org/jira/browse/WAGON-423
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-http, wagon-http-lightweight
>Reporter: Emmanuel Venisse
>Priority: Minor
>
> Authorize Proxy Auto-Config File (.pac file) for proxy configuration in user 
> model.
> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> =>Use rhino for read the pac file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)