I have a dependency on Hibernate 3.5.3 which is only available to me from the new JBoss Maven repository is hosted on Sonatype's Nexus and all the URLs are secured with HTTPS.
I can access this repository from behind my corporate firewall via the web browser. But Maven is unable to resolve the artifacts.
I see the following warning at the start of the build:
[WARNING] Unable to get resource 'org.hibernate:hibernate-core:pom:3.5.3-Final' from repository jboss.org (https://repository.jboss.org/nexus/content/repositories/releases): Error transferring file: repository.jboss.org
I expected that adding the following the the section of the global settings.xml should have done the trick for me:
<proxy>
<id>http.proxy</id>
<active>true</active>
<protocol>http</protocol>
<username>me</username>
<password>private</password>
<host>proxy.somecompany.com</password>
<port>80</port>
<nonProxyHosts>*.somecompany.com</nonProxyHosts>
</proxy>
<proxy>
<id>https.proxy</id>
<active>true</active>
<protocol>https</protocol>
<username>me</username>
<password>private</password>
<host>proxy.somecompany.com</password>
<port>80</port> <!-- tried 443 too -->
<nonProxyHosts>*.somecompany.com</nonProxyHosts>
</proxy>
But it it doesn't work for me.
In my pom.xml I have the following repository dependency declared:
<repository>
<id>jboss.org</id>
<name>JBoss Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
</repository>
I am constrained to using Maven 2.0.8 but I have checked and it doesn't work on Maven 2.2.1 either.