我正在使用 OpenShift 来托管 WildFly 应用程序服务器 8.2.1。最近,我通过 pom.xml 通过以下几行向我的应用程序添加了对 AeroGear 的支持:
<dependency>
<groupId>org.jboss.aerogear</groupId>
<artifactId>unifiedpush-java-client</artifactId>
<version>1.1.0.Final</version>
</dependency>
使用 IntelliJ IDEA 在本地部署 wildlfy 服务器没有任何问题。
但是当我尝试将它部署到我已经工作的应用程序时,将会发生以下 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]
我已经访问过http://mirror.ops.rhcloud.com/nexus/content/groups/public,它似乎是 org.sonatype.oss:oss-parent:9 的 jar (http://mirror. ops.rhcloud.com/nexus/content/groups/public/org/sonatype/oss/oss-parent/9/)在那里丢失(其他依赖项的罐子在那里可用)。
有人知道如何解决这个问题吗?