Service unavailable error while building using Maven

20,042

Solution 1

I think i found the reason it gives 503. In my case this was a proxy issues inspite of excluding hosts that belong to a certain domain.

Remove the proxy from manage jenkins -> manage plugin -> advanced and try again

Solution 2

Your remote repository is inaccessible. See explanation for error 503 in here.

Solution 3

Could be, also I find this error happens all the time when the repo is available and downloading the file manually from the nexus GUI works. For some reason maven looks in the wrong repository location. If it happens for one jar and its pom you can down load the file by hand.

If maven ever hits a temporary HTTP problem it stores a lastUpdated file that you need to delete or it will not try to download the file again for a while. sudo updatedb && locate lastUpdated | xargs rm Or scrabble around in explorer in /Users/username/.m2/repository to find the files if you use windoze

Another thing that can mess with repo access is the proxy that maven uses. Check the contents of ~/.m2/settings.xml or create this file and setup what ever HTTP proxies or lack there of that you need to access the repos you have configured in poms.

Share:
20,042
Sandiip Patil
Author by

Sandiip Patil

Hi I am Sandiip. Working with and around java for major banking giants since past 8years. Though I am a backend developer I got an eye for UI as well. I love to make UI which should talk to the backend smoothly whereas other developers think the other way around.

Updated on March 10, 2020

Comments