我正在使用android中的比特幣。我正在嘗試在Windows 7 64位中使用maven構建項目。我已經完成了從這個GitHub Link建立項目的所有過程。步驟我做了什麼情況如下:如何設置Android Maven項目本地依賴?
第1步: - 從上面的鏈接下載從GIT Android的錢包
第2步: - 在我的寡婦的電腦安裝Maven
步驟: 3 - 設置環境變量
步驟:4 - 打開命令提示符轉至安裝錢包的目錄。運行命令 'MVN全新安裝'
步驟:5 - 得到了以下錯誤:
Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Bitcoin Wallet 4.05-test
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.android.support:support-v4:jar:19.1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.760 s
[INFO] Finished at: 2014-11-05T18:32:30+05:30
[INFO] Final Memory: 9M/21M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wallet: Could not resolve dependencies for project de.schildbach.wallet:wallet:apk:4.05-test: Failure to find com.android.support:support-v4:jar:19.1.0 in file://C:\Android SDK\sdk/extras/android/m2repository was cached in the local repository, resolution will not be reattempted until the update interval of android-support has elapsed or updates are forced -> [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
D:\Working Point\Bitcoin work space\wallet>
步驟:6 - 對於上述錯誤從這裏找到解決方案 - Link
步驟:7 - 成功構建maven-android-sdk-deployer
關於查詢
正如上面的教程說我已經在我的本地用戶目錄,在我的電腦創建本地存儲庫(〜/ .m2目錄/庫/)。其次,該庫在maven-central中不可用,它隨Android SDK一起提供。我需要手動將其部署到本地Maven存儲庫。
但仍然不明白,在哪裏我可以找到它在我的情況。我仍然收到錯誤:缺少com.android.support:support-v4:jar:19.1.0的POM,沒有可用的依賴信息。
從哪裏拿com.android.support:support-v4:jar:19.1.0 jar文件?
我應該在哪裏放置我的android項目?
請任何人都可以告訴我我在哪裏犯錯,或者應該怎樣在maven成功構建比特幣錢包android項目?任何建議,參考或解釋將對我很有幫助。