gpt4 book ai didi

java - Maven中央仓库: Return code is: 503 , ReasonPhrase:backend read error

转载 作者:行者123 更新时间:2023-11-29 05:33:04 27 4
gpt4 key购买 nike

在我们项目的持续集成系统 (travis-ci.org) 中,我开始出现错误:

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.6-SNAPSHOT:start (start-container) on project p6spy-it: Failed resolving artifact: Could not transfer artifact org.jboss.jbossas:jboss-as-distribution:zip:6.1.0.Final from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/jboss/jbossas/jboss-as-distribution/6.1.0.Final/jboss-as-distribution-6.1.0.Final.zip. Return code is: 503 , ReasonPhrase:backend read error.
[ERROR] org.jboss.jbossas:jboss-as-distribution:zip:6.1.0.Final
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] codehaus-snapshots (http://nexus.codehaus.org/snapshots/, releases=false, snapshots=true),
[ERROR] cloudbees-release (http://repository-p6spy.forge.cloudbees.com/release, releases=true, snapshots=false),
[ERROR] sonatype (https://oss.sonatype.org/content/repositories/releases/, releases=true, snapshots=false),
[ERROR] sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/, releases=false, snapshots=true),
[ERROR] sonatype-apache (https://repository.apache.org/releases/, releases=true, snapshots=false),
[ERROR] apache-snapshots (https://repository.apache.org/snapshots/, releases=false, snapshots=true),
[ERROR] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases=false, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)

可以在以下位置看到完整的构建输出:https://api.travis-ci.org/jobs/15104889/log.txt?deansi=true

如果我通过浏览器访问有问题的 url:http://repo.maven.apache.org/maven2/org/jboss/jbossas/jboss-as-distribution/6.1.0.Final/jboss-as-distribution-6.1.0.Final.zip我也遇到同样的错误:

Error 503 backend read error

然而有一天一切都很好。

我该怎么办/如何解决?只是等待他们刷新一些内部缓存?

最佳答案

尝试:

(1) 下载jboss-as-distribution-6.1.0.Final.pomjboss-as-distribution-6.1.0.Final.zip Maven Central Repository .

(2) 手动将 zip 文件安装到本地 Maven 存储库。

mvn install:install-file \
-Dfile=jboss-as-distribution-6.1.0.Final.zip \
-DpomFile=jboss-as-distribution-6.1.0.Final.pom

似乎“返回代码是:503,ReasonPhrase:后端读取错误。”当目标 zip 文件很大时会发生错误。我在下载appengine-java-sdk-1.9.0.zip时遇到了同样的错误。

关于java - Maven中央仓库: Return code is: 503 , ReasonPhrase:backend read error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20448214/

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