Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I use the new JBoss Maven repository from behind a corporate firewall?
    text
    copied!<p>I have a dependency on <a href="http://hibernate.org" rel="nofollow noreferrer">Hibernate</a> 3.5.3 which is only available to me from the new <a href="http://repository.jboss.org/nexus" rel="nofollow noreferrer">JBoss Maven repository</a> is hosted on <a href="http://www.sonatype.com/" rel="nofollow noreferrer">Sonatype</a>'s <a href="http://nexus.sonatype.org/" rel="nofollow noreferrer">Nexus</a> and all the URLs are secured with HTTPS. </p> <p>I can access this repository from behind my corporate firewall via the web browser. But Maven is unable to resolve the artifacts.</p> <p>I see the following warning at the start of the build:</p> <pre><code>[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 </code></pre> <p>I expected that adding the following the the section of the global settings.xml should have done the trick for me:</p> <pre><code>&lt;proxy&gt; &lt;id&gt;http.proxy&lt;/id&gt; &lt;active&gt;true&lt;/active&gt; &lt;protocol&gt;http&lt;/protocol&gt; &lt;username&gt;me&lt;/username&gt; &lt;password&gt;private&lt;/password&gt; &lt;host&gt;proxy.somecompany.com&lt;/password&gt; &lt;port&gt;80&lt;/port&gt; &lt;nonProxyHosts&gt;*.somecompany.com&lt;/nonProxyHosts&gt; &lt;/proxy&gt; &lt;proxy&gt; &lt;id&gt;https.proxy&lt;/id&gt; &lt;active&gt;true&lt;/active&gt; &lt;protocol&gt;https&lt;/protocol&gt; &lt;username&gt;me&lt;/username&gt; &lt;password&gt;private&lt;/password&gt; &lt;host&gt;proxy.somecompany.com&lt;/password&gt; &lt;port&gt;80&lt;/port&gt; &lt;!-- tried 443 too --&gt; &lt;nonProxyHosts&gt;*.somecompany.com&lt;/nonProxyHosts&gt; &lt;/proxy&gt; </code></pre> <p>But it it doesn't work for me.</p> <p>In my pom.xml I have the following repository dependency declared:</p> <pre><code> &lt;repository&gt; &lt;id&gt;jboss.org&lt;/id&gt; &lt;name&gt;JBoss Repository&lt;/name&gt; &lt;url&gt;https://repository.jboss.org/nexus/content/repositories/releases&lt;/url&gt; &lt;/repository&gt; </code></pre> <p>I am constrained to using Maven 2.0.8 but I have checked and it doesn't work on Maven 2.2.1 either.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload