How do I resolve the "service unavailable" code issue due to maven error?

Since the Codehaus repository is no longer available, I get the following error when I try to run "Run As - Maven install" in Eclipse. Below is the error:

[WARNING] Failed to transfer metadata org.eclipse.core: commands / maven-metadata.xml from / to Codehaus Internal ( http://repository.codehaus.org ): Failed to migrate http://repository.codehaus.org/ org / eclipse / core / commands / maven-metadata.xml . Error code 503, Service temporarily unavailable Downloading: http://repository.codehaus.org/org/eclipse/equinox/common/maven-metadata.xml

I also see that the maven dependency issue started popping up for one of the jar files that is not in Demosite -> pom.xml

. Below is the complete error information:

ArtifactDescriptorException: Failed to read artifact descriptor for org.restlet.jee: org.restlet: jar: 2.1.1: ArtifactResolutionException: Unable to translate org.restlet.jee: org.restlet: pom: 2.1.1 from http: // repository. codehaus.org has been cached in the local repository, the permission will not be re-downloaded until the Codehaus Internal refresh interval has passed or has been updated. Original error: Failed to upload artifact org.restlet.jee: org.restlet: pom: 2.1.1 from / to Codehaus Internal ( http://repository.codehaus.org ): failed to translate http: //repository.codehaus. org / org / restlet / jee / org.restlet / 2.1.1 / org.restlet-2.1.1.pom . Error code 503, service temporarily unavailable

How to resolve these 2 blockers?

+3


source to share


4 answers


Since the Codehaus.org artifacts have been ported to Central, one easy way to keep legacy pom.xml files is to declare the mirror as such in your settings.xml, for example.



<mirror>
  <id>RIP Codehaus</id>
  <mirrorOf>codehaus.org</mirrorOf>
  <name>Codehaus.org repo is now in Central. R.I.P.</name>
  <url>http://repo.maven.apache.org/maven2</url>
</mirror>

      

+9


source


From Codehaus post 503:

All Codehaus services will be interrupted until May 17, 2015.

If you were redirected here, the service you are accessing may already be disabled or we are trying to get your attention before disabling the services.

See more details here: https://www.codehaus.org/



If you have these repositories configured in any pom.xml

or settings.xml

, you need to change them to something else or just remove them if these dependencies are in the default repository.

For example, for restlet

you can use this repository: http://maven.restlet.com/

If this repository is in pom.xml

from dependecy, just pass this message, the download will be checked out in another repository.

+1


source


We have removed this repository from the Broadleaf pom.xml, thanks for pointing it out. This was originally added because MVEL does not have a Java 8 compatible jar loaded on Maven Central.

See https://github.com/BroadleafCommerce/BroadleafCommerce/issues/1367 for reference.

0


source


the codehaus repository is mirrored by Mulesoft in the following repo:

https://repository.mulesoft.org/nexus/content/repositories/public/

0


source







All Articles