You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jycr (Jira)" <ji...@apache.org> on 2020/02/17 21:52:00 UTC

[jira] [Commented] (WAGON-453) java.net.useSystemProxies don't work with wagon-http-lightweight

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

jycr commented on WAGON-453:
----------------------------

Sorry for my much too late response. I had a (very) long break.

Regarding property {{java.net.useSystemProxies=true}}, it's the same behavior if I pass it with MAVEN_OPTS, or via command line.

I don't configure any proxy in {{settings.xml}}

Standard/default HTTP wagon (based on HttpClient) don't work (exception: {{Malformed reply from SOCKS server}}).
 I suspect that NTLM implementation in HttpClient [is buggy.|https://codepen.io/ugbandula/post/how-to-configure-maven-to-work-with-ntlm-proxies]

 

I have successfully tested following patch: [^0001-WAGON-453-Fix-java.net.useSystemProxies-don-t-work-w.patch]

 

> java.net.useSystemProxies don't work with wagon-http-lightweight
> ----------------------------------------------------------------
>
>                 Key: WAGON-453
>                 URL: https://issues.apache.org/jira/browse/WAGON-453
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http-lightweight
>    Affects Versions: 2.10
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Java version: 1.8.0_74, vendor: Oracle Corporation
> Default locale: fr_FR, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
>            Reporter: jycr
>            Priority: Blocker
>         Attachments: 0001-WAGON-453-Fix-java.net.useSystemProxies-don-t-work-w.patch
>
>
> In my job, we must use a "corporate proxy" with "NTLM+SPNEGO authentication" to access Internet.
> Unfortunately, we haven't got any nominative proxy credential because Windows use current user session to authenticate against proxy (we we login to Windows session with a smart card).
> The only way for Java application to connect to internet is to launch JVM with {{-Djava.net.useSystemProxies=true}} standard parameter.
> It work perfectly with "standard" URLConnection , but unfortunately not with wagon-http-lightweight.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)