摘要:
運行 「MVN戰爭:戰爭」 失敗,錯誤包括:
「下面的文物無法解析:org.openid4java:openid4java:罐子:0.9.6" 。Maven的 「無法解析的依賴關係」 爲openid4java
我會記下它的事實,即我是Maven noob,但我看到其他人已發佈到openid4java網站,聲明來自Maven中心的jars are missing for openid4java。
詳情:
我試圖站起來通過運行中包含的openid4java(0.9.6.662)的最新版本的簡單的OpenID的示例應用程序與openid4java加快。
根據自述「此演示要求 apache Maven2構建」。自述文件還指出:「軍事戰爭:戰爭任務應該創建一個可以通過複製戰爭文件來部署的戰爭文件」。
到現在爲止,我一直在用Ant和Mavent Ant Tasks來解決問題,但我想我今天會咬緊牙關並安裝Maven 3.0.3。我遵循安裝說明,現在可以成功運行「mvn --version」
當我運行「mvn war:war」時,確實有很多文件被下載到我的本地存儲庫中,但最終生成失敗,出現以下摘錄消息:
[ERROR] Failed to execute goal on project simple-openid: Could not resolve dependencies for project org.openid4java:simple-openid:war:0.9.6: The following artifacts could not be resolved: org.openid4java:openid4java:jar:0.9.6, org.openid4java:openid4java-consumer:jar:0.9.6, org.openid4java:openid4java-server:jar:0.9.6, org.openid4java:openid4java-server-JdbcServerAssociationStore:jar:0.9.6, org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Failure to find org.openid4java:openid4java:jar:0.9.6 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project simple-openid: Could not resolve dependencies for project org.openid4java:simple-openid:war:0.9.6: The following artifacts could not be resolved: org.openid4java:openid4java:jar:0.9.6, org.openid4java:openid4java-consumer:jar:0.9.6, org.openid4java:openid4java-server:jar:0.9.6, org.openid4java:openid4java-server-JdbcServerAssociationStore:jar:0.9.6, org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Failure to find org.openid4java:openid4java:jar:0.9.6 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.openid4java:simple-openid:war:0.9.6: The following artifacts could not be resolved: org.openid4java:openid4java:jar:0.9.6, org.openid4java:openid4java-consumer:jar:0.9.6, org.openid4java:openid4java-server:jar:0.9.6, org.openid4java:openid4java-server-JdbcServerAssociationStore:jar:0.9.6, org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Failure
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.openid4java:openid4java:jar:0.9.6, org.openid4java:openid4java-consumer:jar:0.9.6, org.openid4java:openid4java-server:jar:0.9.6, org.openid4java:openid4java-server-JdbcServerAssociationStore:jar:0.9.6, org.openid4java:openid4java-consumer-SampleConsumer:jar:0.9.6, org.openid4java:openid4java-server-SampleServer:jar:0.9.6: Failure to find org.openid4java:openid4java:jar:0.9.6 in
我在這裏做錯了什麼或者是實際上從Maven存儲庫中缺少的罐子?
作爲一個總的maven noob,我無法完成這項工作。哪個pom確切需要編輯?存儲庫中或包含的示例包中包含哪一個? – Steven