Droid-Fu Build Error

I am trying to create a Droid-Fu as indicated on the GitHub page, but the build does not work. Here is the message I received after running mvn package inside the Droid-Fu folder

[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

Any idea what I can do wrong?

+3
source share
5 answers

JAR maps are not located on Maven Central, as it contains proprietary code. You can use maven-android-sdk-deployer to easily install it from a local SDK installation.

To make sure you have all versions of the platform, first run

android update sdk --no-ui

Then the git cloneSDK deployer and run

mvn install

If you want to install only one version of the platform, run it with the flag -P <version>.

+3

. Android SDK . maven jar Google Maps 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/ -ons/addon_google_apis_google_inc_9//maps.jar

-: mvn package

, !

+5

droid-fu Googled .

android update sdk

--no-ui. , Google . , .

0

maven-android-sdk-deployer , Android Maven Android Maven Plugin Android SDK

( zip, , "mvn install" [EnvVars ])

maven , Maps API 8_r2:

<dependency>
    <groupId>com.google.android.maps</groupId>
    <artifactId>maps</artifactId>
    <version>8_r2</version>
    <scope>provided</scope>
</dependency>
0

Source: https://habr.com/ru/post/1792691/


All Articles