You might try adding an <id> element to each of the settings to make
them distinct.
From http://maven.apache.org/settings.html#Proxies:
"id - The unique identifier for this proxy. This is used to
differentiate between proxy elements."
Joe Hindsley
Koerner, Ron wrote:
Hi list,
I use several repositories which are both http and https. So I added
this to settings.xml:
<proxies>
<proxy>
<active>true</active>
<protocol>https</protocol>
<host>proxy</host>
<port>81</port>
</proxy>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy</host>
<port>81</port>
</proxy>
</proxies>
where proxy is our internal proxy.
No it seems that maven only ever uses the first entry, so in the current
configuration I can download from https-repositories while
http-repositories are contacted directly (which fails due to firewalls).
If I swap the entries I can download from http-repositories but not from
https...
I think (but cannot prove it) that this behaviour is new with maven
2.2.0, while everything was ok with 2.0.8.
Is this a bug or am I doing something wrong?
Thanks,
Ron
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org