On 8/28/24 11:38 AM, Joga Singh wrote:
Dear Tomothy,
Thanks for the response.
I tried `-Daether.transport.apache.useSystemProperties=true', but the result is 
the same.

I also looked into the guides, but I could not find any further relevant info.

Is there a way to debug the issue?

See Tamás's response in thread.

With two `active' profiles you end up with Maven picking the first.

To debug, you could try running with --debug|-X for more to see if there is an SSL error for `https-proxy' or some other error with the proxy being used.

Do you have an internal cert that the JVM might need, i.e., you need to update the cacerts with keytool?

I would have to see a full debug log to go further and you potentially could be leaking secrets if the log was not thoroughly scrubbed, so be careful about sharing logs.

Tim



________________________________
Von: Timothy Stone
Gesendet: Mittwoch, 28. August 2024 02:50
Bis: users@maven.apache.org
Betreff: Re: Proxy issue with 3.9.x. Works in 3.8.x



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



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