简体   繁体   English

Openshift构建失败-无法读取工件描述符

[英]Openshift Build Failure - Failed to read artifact descriptor

i'm using OpenShift for hosting a WildFly Application Server 8.2.1. 我正在使用OpenShift托管WildFly Application Server 8.2.1。 Recently i added support for AeroGear to my application through the pom.xml via the following lines: 最近,我通过以下行通过pom.xml在我的应用程序中添加了对AeroGear的支持:

<dependency>
  <groupId>org.jboss.aerogear</groupId>
  <artifactId>unifiedpush-java-client</artifactId>
  <version>1.1.0.Final</version>
</dependency>

Deploying the wildlfy server locally with IntelliJ IDEA is working without any problems. 使用IntelliJ IDEA在本地部署wildlfy服务器可以正常工作。

But when i try to deploy it to my already working application, there is going to happen the following BUILD FAILURE: 但是,当我尝试将其部署到我已经运行的应用程序时,将发生以下构建失败:

[ERROR] Failed to execute goal on project com.example.test: 
Could not resolve dependencies for project 
com.example.test-wildfly:com.example.test-wildfly:war:1.0:  
Failed to collect dependencies for 

[org.jboss.aerogear:unifiedpush-java-client:jar:1.1.0.Final (compile),  
org.mongodb:mongodb-driver:jar:3.2.1 (compile), 
org.mongodb.morphia:morphia:jar:1.0.1 (compile), 
com.google.guava:guava:jar:10.0.1 (compile), 
javax:javaee-api:jar:7.0 (provided), 
com.squareup.okhttp:okhttp-ws:jar:2.5.0 (compile), 
org.json:json:jar:20090211 (compile), 
org.java-websocket:Java-WebSocket:jar:1.3.0 (compile), 
org.codehaus.jackson:jackson-jaxrs:jar:1.9.13 (compile), 
org.codehaus.jackson:jackson-xc:jar:1.9.13 (compile), 
commons-codec:commons-codec:jar:1.9 (compile), 
commons-logging:commons-logging:jar:1.2 (compile),
org.jsoup:jsoup:jar:1.7.3 (compile), 
org.imgscalr:imgscalr-lib:jar:4.2 (compile),
io.dropwizard.metrics:metrics-core:jar:3.1.0 (compile), 
io.dropwizard.metrics:metrics-servlets:jar:3.1.0 (compile), 
io.dropwizard.metrics:metrics-servlet:jar:3.1.0 (compile)]:

Failed to read artifact descriptor for com.google.code.gson:gson:jar:2.3:
Failure to find org.sonatype.oss:oss-parent:pom:9 in
http://mirror.ops.rhcloud.com/nexus/content/groups/public was cached in the local
repository, resolution will not be reattempted until the update interval of nexus 
has elapsed or updates are forced -> [Help 1]

I already visited http://mirror.ops.rhcloud.com/nexus/content/groups/public , and it seems to be that the jar for org.sonatype.oss:oss-parent:9 ( http://mirror.ops.rhcloud.com/nexus/content/groups/public/org/sonatype/oss/oss-parent/9/ ) is missing there (the jars for the other dependencies are available there). 我已经访问了http://mirror.ops.rhcloud.com/nexus/content/groups/public ,似乎是org.sonatype.oss:oss-parent:9( http:// mirror。 ops.rhcloud.com/nexus/content/groups/public/org/sonatype/oss/oss-parent/9/ )(那里没有其他依赖项的jar文件)。

Does anybody know how to fix this? 有人知道如何解决此问题吗?

After digging... A lot. 挖了之后...很多。 I've found that the maven repositories on OpenShift are very heavily broken at the moment. 我发现目前OpenShift上的Maven存储库已严重损坏。

As a verification you can click the following link and refresh page. 作为验证,您可以单击以下链接和刷新页面。 Notice that it will intermittently jump to 500 errors and in some cases display incomplete contents: 请注意,它会间歇性地跳到500个错误,并且在某些情况下显示不完整的内容:

http://mirror.ops.rhcloud.com/nexus/content/groups/public/org/sonatype/oss/oss-parent/9/ http://mirror.ops.rhcloud.com/nexus/content/groups/public/org/sonatype/oss/oss-parent/9/

Due to the way maven caches failures, once you hit your first HTTP error on their mirror, the maven client will cache that the resource is not available and you will consistently see the same error for 24 hours. 由于maven缓存失败的方式,一旦您在其镜像上遇到第一个HTTP错误,maven客户端就会缓存该资源不可用,并且您将在24小时内始终看到相同的错误。

As a temporary work around I've run: 作为临时工作,我已经运行:

rsync -a ~/.m2/repository/ ${OPENSHIFT_SSH_URL}:~/.m2/repository/

after cleanly building the code locally 在本地干净地构建代码之后

There was a problem with one of the three systems behind the load balancer which serves this content. 满足此内容的负载均衡器后面的三个系统之一存在问题。 It should now be fixed. 现在应该修复了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM