Abh*_*nav 3 android maven droid-fu
我正在尝试按照GitHub页面上的指定构建Droid-Fu,但构建失败.这是我在Droid-Fu文件夹中运行mvn包后得到的消息
[INFO] artifact junit:junit: checking for updates from central
Downloading: http://powermock.googlecode.com/svn/repo//com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository powermock-repo (http://powermock.googlecode.com/svn/repo/)
Downloading: http://repo1.maven.org/maven2/com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.google.android.maps:maps:jar:9_r1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT
2) com.google.android.maps:maps:jar:9_r1
----------
1 required artifact is missing.
for artifact:
com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT
Run Code Online (Sandbox Code Playgroud)
知道我可能做错了吗?
我有同样的问题.较新版本的Android SDK略微改变了目录.您必须将maven指向Google Maps jar版本9的正确路径.
只需在以下命令中将path-to-android-sdk替换为您的基目录即可
mvn install:install-file -DgroupId = com.google.android.maps -DartifactId = maps -Dversion = 9_r1 -Dpackaging = jar -Dfile = path-to-android-sdk /add-ons/addon_google_apis_google_inc_9/libs/maps.jar
然后你想执行以下命令来构建droid-fu jar:mvn包
希望这可以帮助!
| 归档时间: |
|
| 查看次数: |
2520 次 |
| 最近记录: |