我正在嘗試使用maven構建Online-Whiteboard軟件(http://code.google.com/p/online-whiteboard/)。根據上面鏈接的網站,我需要使用如下命令:Maven構建錯誤(無法解決依賴關係)
mvn jetty:run
然而,當我運行該命令我碰到下面的錯誤:
[ERROR] Failed to execute goal on project whiteboard-showcase: Could not resolve
dependencies for project com.googlecode.online-whiteboard:whiteboard-showcase:war:0.1:
Failed to collect dependencies for [commons-lang:commons-lang:jar:2.5 (compile),
commons-configuration:commons-configuration:jar:1.6 (compile), com.sun.faces:jsf-
api:jar:2.1.2 (compile), com.sun.faces:jsf-impl:jar:2.1.2 (compile),
org.primefaces:primefaces:jar:2.2.1 (compile), org.primefaces.themes:cupertino:jar:1.0.1
(compile), com.ocpsoft:prettyfaces-jsf2:jar:3.3.0 (compile), javax.el:el-api:jar:2.2
(compile), org.glassfish.web:el-impl:jar:2.2 (compile), javax.annotation:jsr250-api:jar:1.0
(compile), javax.servlet:servlet-api:jar:2.5 (compile), javax.servlet:jstl:jar:1.2
(compile), com.google.code.gson:gson:jar:1.7.1 (compile), org.atmosphere:atmosphere-
jersey:jar:0.8-SNAPSHOT (compile), org.apache.geronimo.specs:geronimo-
servlet_3.0_spec:jar:1.0 (compile), org.slf4j:slf4j-api:jar:1.6.2 (compile),
org.slf4j:slf4j-nop:jar:1.6.2 (compile), junit:junit:jar:4.8.2 (test)]: Failed to read
artifact descriptor for org.primefaces:primefaces:jar:2.2.1: Could not transfer artifact
org.primefaces:primefaces:pom:2.2.1 from/to JBoss (http://repository.jboss.org/maven2/):
Access denied to:
http://repository.jboss.org/maven2//org/primefaces/primefaces/2.2.1/primefaces-2.2.1.pom ->
[Help 1]
我以前從來沒有使用Maven的,所以真的不知道我在這裏做什麼;我試圖查找這可能是什麼,但找不到任何東西(有幫助)。任何幫助表示讚賞。
謝謝;這是pom.xml文件中不正確的存儲庫之一。 Maven現在可以檢索所有內容。 –