gpt4 book ai didi

spring - 如何解决 codehaus "service unavailable"maven 构建错误?

转载 作者:行者123 更新时间:2023-12-04 22:30:12 24 4
gpt4 key购买 nike

由于 codehaus 存储库不再可用,每当我尝试在 Eclipse 中执行“运行方式 - Maven 安装”时,都会出现以下错误。以下是我得到的错误:

[WARNING] Could not transfer metadata org.eclipse.core:commands/maven-metadata.xml from/to Codehaus Internal (http://repository.codehaus.org): Failed to transfer 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



我还看到 Demosite -> pom.xml 中不存在的 jar 文件之一出现了 maven 依赖问题。以下是完整的错误信息:

ArtifactDescriptorException: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: ArtifactResolutionException: Failure to transfer org.restlet.jee:org.restlet:pom:2.1.1 from http://repository.codehaus.org was cached in the local repository, resolution will not be reattempted until the update interval of Codehaus Internal has elapsed or updates are forced. Original error: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to Codehaus Internal (http://repository.codehaus.org): Failed to transfer http://repository.codehaus.org/org/restlet/jee/org.restlet/2.1.1/org.restlet-2.1.1.pom. Error code 503, Service Temporarily Unavailable



如何解决这两个阻滞剂?

最佳答案

由于 Codehaus.org Artifact 已全部转移到 Central,继续使用旧 pom.xml 文件的一种简单方法是在 settings.xml 中声明镜像,例如:

<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>

关于spring - 如何解决 codehaus "service unavailable"maven 构建错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30288097/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com