Hi all,
I upgraded to Maven 3 very recently and since then I am experiencing
issues with my proxy definition. It seems like the "nonProxyHosts"
parameter is not honored anymore.
Here is my proxy configuration:
--------- settings.xml ---------------
<proxies>
<proxy>
<id>ELCA</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.elca.ch</host>
<port>8080</port>
<nonProxyHosts>*.elca.ch|leaffy|localhost|*.stx.local</nonProxyHosts>
</proxy>
</proxies>
------------------------------------------
Now when I try to build a project which must retrieve an artifact from
my local mirror (server named leaffy.elca.ch) I can clearly see that it
tries to go through the proxy:
----------------------------------------------
r...@nbrbr % mvn install -X
Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
Java version: 1.6.0_20
Java home: /opt/jdk1.6.0_20/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.34.7-56.fc13.i686.pae" arch: "i386"
Family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading user settings from /home/rbr/.m2/settings.xml
[DEBUG] Reading global settings from /opt/apache-maven-3.0/conf/settings.xml
[DEBUG] Using local repository at /home/rbr/.m2/m2repository
[INFO] Scanning for projects...
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://www.stx.local/nexus/content/repositories/releases as rbr
Downloading:
http://www.stx.local/nexus/content/repositories/releases/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom
[DEBUG] Reading resolution tracking file
/home/rbr/.m2/m2repository/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom.lastUpdated
[DEBUG] Writing resolution tracking file
/home/rbr/.m2/m2repository/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom.lastUpdated
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://www.stx.local/nexus/content/repositories/thirdparty as rbr
Downloading:
http://www.stx.local/nexus/content/repositories/thirdparty/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom
[DEBUG] Reading resolution tracking file
/home/rbr/.m2/m2repository/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom.lastUpdated
[DEBUG] Writing resolution tracking file
/home/rbr/.m2/m2repository/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom.lastUpdated
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://leaffy.elca.ch:8082/nexus/content/groups/releases via
*proxy.elca.ch:8080*
Downloading:
http://leaffy.elca.ch:8082/nexus/content/groups/releases/ch/elca/el4j/maven/el4j-maven/1.7/el4j-maven-1.7.pom
----------------------------------------------
Now If I launch the exact same command with Maven 2.2.1 everything works
fine.
Did anything change regarding the proxy definition ? Is someone else
experiencing the same problems ?
Thanks in advance for your help,
Reynald