1
我是這個maven概念的新手,我正在構建一個android應用程序,我想爲robospice lib。 Rebospice演示示例需要Maven乾淨安裝。我安裝在我的Ubuntu 12.04無法做maven乾淨安裝
mvn -v
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_10, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-35-generic-pae", arch: "i386", family: "unix"
然後我試圖行家行家對我的示範項目,清潔安裝它提供以下錯誤
[WARNING] The POM for com.octo.android.robospice:robospice:jar:1.3.2-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.351s
[INFO] Finished at: Mon Jan 21 15:15:55 IST 2013
[INFO] Final Memory: 10M/124M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project robospice-sample-core: Could not resolve dependencies for project com.octo.android.robospice:robospice-sample-core:apk:1.0.0-SNAPSHOT: Could not find artifact com.octo.android.robospice:robospice:jar:1.3.2-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException.
請告訴我這背後的問題..需要幫助解決這個問題.. ..
Hye Samuels謝謝你的回覆。我從.m2中刪除存儲庫文件夾並構建我的項目,它創建了新的存儲庫文件夾,但又一次給出相同的錯誤我的示例項目包含POM.xml,但仍然給錯誤...需要幫助...謝謝你... – nilkash
看來,在你使用的版本的包裝中存在一個問題。也許robospice:jar:1.3.2-SNAPSHOT沒有部署在公共Maven倉庫中。你可以嘗試切換到1.3.1版本,看看你是否可以建立? –
我認爲塞繆爾在這裏是正確的。看看http://mvnrepository.com/artifact/com.octo.android.robospice/robospice,只發布1.3.1。 –