On 8/26/24 10:31 AM, Joga Singh wrote:
Hi Guys,
I am having issues while using a proxy with Authentication. I use the below 
settings.xml
With 3.9.x, I get Authentication Required (407) error.  If I use the propery 
"-Dmaven.resolver.transport=wagon", it works fine. Similarily, it works fine 
with 3.8.x version.

Is there anything special, I need to do for transport=native or I am missing 
something?

Curious, have you tried:

`-Daether.transport.apache.useSystemProperties=true'

I did some digging in the Maven source because I'm curious if the settings:proxy elements end up setting the standard JVM properties, but my investigation was inconclusive.

See also
https://maven.apache.org/resolver/configuration.html and
https://maven.apache.org/guides/mini/guide-http-settings.html

I am very interested in your experiences. I'm a contributor to an OSS CI/CD pipeline repository for GitLab and Maven and this very question has come up.

Let me know if either of these guides provide some guidance. I'm additionally going to open a query in the dev list about this. The documentation is a bit "confusing" in the messaging (and then lack any guidance on what might be the proper way).

Thanks!
Tim

==============
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
https://maven.apache.org/xsd/settings-1.0.0.xsd";>
   <proxies>
     <proxy>
       <id>https-proxy</id>
       <active>true</active>
       <protocol>https</protocol>
       <host>10.xx.xx.xx</host>
       <port>3128</port>
       <username>xxx</username>
       <password>xxxx</password>
     </proxy>
    <proxy>
       <id>http-proxy</id>
       <active>true</active>
       <protocol>http</protocol>
       <host>10.xx.xx.xx</host>
       <port>3128</port>
       <username>xxx</username>
       <password>xxxx</password>
     </proxy>
   </proxies>
</settings>
========================

Best regards,

Joga


--
Timothy Stone
=============
Some call me ... Tim.
Husband, Father, Blogger, OSS, Wargamer, Home Brewer, and D&D
Find me on GitLab | GitHub | Linked In | MeWe | GnuPG

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to