Nexus Repo gives 503 with Maven but not with browser

Jackie picture Jackie · Nov 5, 2012 · Viewed 20.4k times · Source

I just created a Nexus repo on a remote server. If I go to a browser on my local computer I see the pom file just fine. However, when I try mvn clean compile I see...

http://server:8081/nexus/content/repositories/thirdparty/com/class/module/1.0.0/module-1.0.0.pom. Return code is: 503, ReasonPhrase:Service Unavailable. ->

I know 503 means it can't get the service, but that throws me because I see it fine in the browser.

I have the proxy configured in my settings.xml, and if I remove the referance to the third party dependency I get the central deps fine.

Any ideas?

Answer

Jackie picture Jackie · Nov 6, 2012

Problem was related to the proxy...

When I configured the proxy in my Settings.xml it worked great for external sites, however, it screwed up internal sites (like my nexus repo). So I removed the proxy from my settings.xml, added it to my nexus server, and then mirrored the central repo to my nexus version of central repo.

Now everything works as expected...