Service unavailable error while building using Maven
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.
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, 2020Comments
-
Sandiip Patil about 4 years
I am a newbie to Maven. First time I run the
mvn clean install
command and it gave me the below error:[ERROR] Non-resolvable parent POM: Could not transfer artifact com.sybase365.mobiliser:mobiliser-parent:pom:4.6.0-RC02 from/to repo (http://orinoco.sybase.com/nexus/content/groups/public-devel): Failed to transfer file: http://orinoco.sybase.com/nexus/content/groups/public-devel/com/sybase365/mobiliser/mobiliser-parent/4.6.0-RC02/mobiliser-parent-4.6.0-RC02.pom. Return code is: 503, ReasonPhrase:Service Temporarily Unavailable. and 'parent.relativePath' points at wrong local POM @ line 3, column 11 ->
How do I resolve this error?