Howdy,

see documentation:
https://maven.apache.org/settings.html#proxies

important bit:
"active: true if this proxy is active. This is useful for declaring a
set of proxies, but only one may be active at a time."

Your snippet has two active proxies, so which one is it? (in this case
Maven iterates and grabs first)

Thanks
T

On Mon, Aug 26, 2024 at 4:31 PM Joga Singh <joga.si...@outlook.de> 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?
>
> ==============
> <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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to