Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven central repo:返回代码为:503,原因短语:后端读取错误_Java_Maven - Fatal编程技术网

Java Maven central repo:返回代码为:503,原因短语:后端读取错误

Java Maven central repo:返回代码为:503,原因短语:后端读取错误,java,maven,Java,Maven,在我们项目的持续集成系统(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-

在我们项目的持续集成系统(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)
完整构建输出可以在以下位置看到:

如果我通过浏览器访问有问题的url: 我也会遇到同样的错误:

Error 503 backend read error
然而有一天,一切都很好


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

如果下载远程工件对您的构建至关重要,您是否考虑过运行自己的Nexus实例

通过在网络中充当本地缓存,这将保护您免受暂时的网络和服务器错误的影响。它还将提高构建过程的性能

第二种选择是使用搜索服务提供的备选URL:

也许,只是也许你会被重定向到一个Web服务器,它要么托管在S3上,要么在一个更可用的集群中

最后,如果您对Sonatype如何扩展Maven Central感兴趣,他们的博客会发布一些有趣的更新:

试试:

(1) 从下载jboss-as-distribution-6.1.0.Final.pomjboss-as-distribution-6.1.0.Final.zip

(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,ReasonPhase:后端读取错误”。当目标zip文件较大时,会发生错误。我在下载appengine-java-sdk-1.9.0.zip时遇到了相同的错误。

好吧,我的问题是在travis-ci.org=>托管的maven repo上运行的构建不是一个选项,因为我们只使用免费的东西(与github合作-我们的项目:)。还有maven搜索的url?同时,我只是下载了http,我可能会更新到搜索服务URL的链接,因为这些链接更多地绑定到maven。不管怎样,当我们处理货物时,我已经创建了错误报告:您仍然回答了我的问题,谢谢。