Git Product home page Git Product logo

maven-android-sdk-deployer's People

Contributors

alezandr avatar dlvenable avatar ened avatar eskatos avatar hugojosefson avatar ibagayev avatar jakewharton avatar jameswald avatar johnjohndoe avatar kevinsawicki avatar kwent avatar mbertram avatar mdumrauf avatar mingfai avatar mosabua avatar ncornette avatar nicstrong avatar pdecat avatar rfc1459 avatar royclarkson avatar rtack avatar ruleant avatar salehhamadeh avatar secondsun avatar shairontoledo avatar shusshu avatar srcreigh avatar tprochazka avatar woeye avatar zsoltii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maven-android-sdk-deployer's Issues

Attach source-code artifact

If a user has installed "Sources for Android SDK" the deployer should generate source-code artifacts by creating a JAR out of (for example) sources/android-16. Similarly, there are source files in extras/android/support/v13/src.

Justification: Adding source-code artifacts will help debugging problems and improve code-completion and Javadoc inside the IDE.

Install the android-test artifact

In order to run the instrumentation tests I also need to add the dependency for android instrumentation. It would be nice if it could also install this artifact into the repository.

Failure while deploying Google Play Services sources

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (jar-file) on project google-play-services: Error deploying attached artifact /Users/me/maven-android-sdk-deployer/extras/google-play-services/target/google-play-services-2.2.1-sources.jar: Failed to deploy artifacts: Could not transfer artifact com.simpligility.android.sdk-deployer:google-play-services:jar:sources:2.2.1 from/to repo-thirdparty (http://mynexus.ru/content/repositories/thirdparty/): Failed to transfer file: http://mynexus.ru/content/repositories/thirdparty/com/simpligility/android/sdk-deployer/google-play-services/2.2.1/google-play-services-2.2.1-sources.jar. Return code is: 400, ReasonPhrase:Bad Request.

Google AdMob SDK handling should be reworked

I know, since I'm the one who contributed the pom for AdMob SDK this issue might seem silly, but I want to get your attention before submitting another pull request.

Google just bumped up AdMob SDK to revision 5 (which - ironically - corresponds to AdMob SDK 6.0.0), so new installations won't find the old artifact and error out on the AdMob Extra.
I used the "nuke from orbit" approach in rfc1459@35e0aacd (eg. dropped the old artifactId altogether and bumped it up to admob-v5), but I believe we need a better way to handle this kind of situations.

If someone has a better idea I'll be happy to adopt it, otherwise if @mosabua +1s the artifactId change I'll just submit a pull request for that commit as-is.

can't mvn install on OS X

I tried to mvn install the latest src and got this error about a missing source.properties file.

andys-imac:maven-android-sdk-deployer andy$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Maven Android SDK Deployer
[INFO] Android Platforms
[INFO] Android Platform 1.5
[INFO] Android Platform 1.6
[INFO] Android Platform 2.0.1
[INFO] Android Platform 2.1
[INFO] Android Add-Ons
[INFO] Android Add-On Google API 3
[INFO] Android Add-On Google API 4
[INFO] Android Add-On Google API 6
[INFO] Android Add-On Google API 7
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Android SDK Deployer
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /Users/andy/greenrobot/android/maven-android/maven-android-sdk-deployer/pom.xml to /Users/andy/.m2/repository/com/simpligility/android/sdk-deployer/maven-android-sdk-deployer/0.6/maven-android-sdk-deployer-0.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platforms
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /Users/andy/greenrobot/android/maven-android/maven-android-sdk-deployer/platforms/pom.xml to /Users/andy/.m2/repository/com/simpligility/android/sdk-deployer/android-platforms/0.6/android-platforms-0.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 1.5
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [properties:read-project-properties {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Properties file not found: /Users/andy/Downloads/android-sdk-mac_86/platforms/android-3/source.properties
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Apr 01 15:41:18 EDT 2010
[INFO] Final Memory: 15M/79M
[INFO] ------------------------------------------------------------------------
andys-imac:maven-android-sdk-deployer andy$

API 17 failure in Google Play APK Expansion Extra - Downloader

Hello everyone,

I have just installed the API 17 in Windows 7 and renamed the folder : \Android\android-sdk\platforms\android-17 to android-4.2 in order to be found by the deployer.

I haven´t got any other API installed. When executing "maven install -P 4.2" from cmd I get success for every project till "Android Google Play APL Expansion Extra - Downloader" which points to:

"Invalid SDK: Platform/API level 10 not available".

I commented the line in pom.xml in order not to be deployed and everything is successful (including Android Tools and Android Annotations).

What could be done? Maybe I have to install the old API 10 ??

Thanks in advance,

Alvaro Lopez

Incorrect names of folders in SDK

Hello.
"If you find names using the platform version (e.g. 15) in the folder name reinstall that platform from the android tool." from your instruction. But I have folders, that have names based on API version. I have reinstalled all platform from Android SDK tools, but all platforms have name base on API version.
What should I do in this situation?

Javadoc for platform 4.1 not generated

For all other platforms it works great. But for 4.1 the Javadoc documentation will not be generated.
.m2\repository\android\android\4.1_r1 is missing the android-4.1_r1-javadoc.jar

Problem with installing the whole Package

Hi, I tried to Install the whole but everytime when I try to install it with the command
"mvn install". I got this message:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Maven Android SDK Deployer
[INFO] Android Platforms
[INFO] Android Platform 1.5 API 3
[INFO] Android Platform 1.6 API 4
[INFO] Android Platform 2.1 API 7
[INFO] Android Platform 2.2 API 8
[INFO] Android Platform 2.3.3 API 10
[INFO] Android Platform 3.0 API 11
[INFO] Android Platform 3.1 API 12
[INFO] Android Platform 3.2 API 13
[INFO] Android Platform 4.0 API 14
[INFO] Android Platform 4.0.3 API 15
[INFO] Android Add-Ons
[INFO] Android Add-On Google Platform 1.5 API 3 (Maps)
[INFO] Android Add-On Google Platform 1.6 API 4 (Maps)
[INFO] Android Add-On Google Platform 2.1 API 7 (Maps)
[INFO] Android Add-On Google Platform 2.2 API 8 (Maps)
[INFO] Android Add-On Google Platform 2.3.3 API 10 (Maps and USB)
[INFO] Android Add-On Google Platform 3.0 API 11 (Maps)
[INFO] Android Add-On Google Platform 3.1 API 12 (Maps and USB)
[INFO] Android Add-On Google Platform 3.2 API 13 (Maps and USB)
[INFO] Android Add-On Google Platform 4.0 API 14 (Maps and USB)
[INFO] Android Add-On Google Platform 4.0.3 API 15 (Maps and USB)
[INFO] Android Extras
[INFO] Android Compatibility Extra V4
[INFO] Android Compatibility Extra V13
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Android SDK Deployer 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ maven-android-sdk-deployer ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\maven-android-sdk-deployer\1.1.2\maven-android-sdk-deployer-1.1.2.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platforms 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-platforms ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-platforms\1.1.2\android-platforms-1.1.2.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 1.5 API 3 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-3 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-3 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-3\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-3\1.1.2\android-3-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-3 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-3\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\1.5_r4\android-1.5_r4.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 1.6 API 4 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-4 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-4 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-4\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-4\1.1.2\android-4-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-4 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-4\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\1.6_r3\android-1.6_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 2.1 API 7 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-7 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-7 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-7\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-7\1.1.2\android-7-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-7 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-7\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\2.1_r3\android-2.1_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 2.2 API 8 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-8 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-8 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-8\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-8\1.1.2\android-8-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-8 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-8\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\2.2_r3\android-2.2_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 2.3.3 API 10 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-10 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-10 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-10\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-10\1.1.2\android-10-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-10 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-10\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\2.3.3_r2\android-2.3.3_r2.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 3.0 API 11 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-11 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-11 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-11\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-11\1.1.2\android-11-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-11 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-11\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\3.0_r2\android-3.0_r2.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 3.1 API 12 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-12 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-12 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-12\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-12\1.1.2\android-12-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-12 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-12\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\3.1_r3\android-3.1_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 3.2 API 13 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-13 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-13 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-13\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-13\1.1.2\android-13-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-13 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-13\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\3.2_r1\android-3.2_r1.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 4.0 API 14 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-14 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-14 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-14\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-14\1.1.2\android-14-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-14 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-14\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\4.0_r3\android-4.0_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 4.0.3 API 15 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-15 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-15 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\platforms\android-15\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-15\1.1.2\android-15-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-15 ---
[INFO] Installing D:\Programme\Android\android-sdk\platforms\android-15\android.jar to C:\Users\Cracksoldier.m2\repository\android\android\4.0.3_r1\android-4.0.3_r1.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Add-Ons 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-add-ons ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\add-ons\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\android-add-ons\1.1.2\android-add-ons-1.1.2.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Add-On Google Platform 1.5 API 3 (Maps) 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ google-apis-3 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ google-apis-3 ---
[INFO] Installing C:\Users\Cracksoldier\Downloads\mosabua-maven-android-sdk-deployer-101ffe3\add-ons\google-apis-3\pom.xml to C:\Users\Cracksoldier.m2\repository\com\simpligility\android\sdk-deployer\google-apis-3\1.1.2\google-apis-3-1.1.2.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ google-apis-3 ---
[INFO] Installing D:\Programme\Android\android-sdk\add-ons\addon-google_apis-google_inc_-3\libs\maps.jar to C:\Users\Cracksoldier.m2\repository\com\google\android\maps\maps\3_r3\maps-3_r3.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Add-On Google Platform 1.6 API 4 (Maps) 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ google-apis-4 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [0.382s]
[INFO] Android Platforms ................................. SUCCESS [0.020s]
[INFO] Android Platform 1.5 API 3 ........................ SUCCESS [0.266s]
[INFO] Android Platform 1.6 API 4 ........................ SUCCESS [0.082s]
[INFO] Android Platform 2.1 API 7 ........................ SUCCESS [0.050s]
[INFO] Android Platform 2.2 API 8 ........................ SUCCESS [0.061s]
[INFO] Android Platform 2.3.3 API 10 ..................... SUCCESS [0.053s]
[INFO] Android Platform 3.0 API 11 ....................... SUCCESS [0.074s]
[INFO] Android Platform 3.1 API 12 ....................... SUCCESS [0.068s]
[INFO] Android Platform 3.2 API 13 ....................... SUCCESS [0.072s]
[INFO] Android Platform 4.0 API 14 ....................... SUCCESS [0.065s]
[INFO] Android Platform 4.0.3 API 15 ..................... SUCCESS [0.078s]
[INFO] Android Add-Ons ................................... SUCCESS [0.010s]
[INFO] Android Add-On Google Platform 1.5 API 3 (Maps) ... SUCCESS [0.129s]
[INFO] Android Add-On Google Platform 1.6 API 4 (Maps) ... FAILURE [0.003s]
[INFO] Android Add-On Google Platform 2.1 API 7 (Maps) ... SKIPPED
[INFO] Android Add-On Google Platform 2.2 API 8 (Maps) ... SKIPPED
[INFO] Android Add-On Google Platform 2.3.3 API 10 (Maps and USB) SKIPPED
[INFO] Android Add-On Google Platform 3.0 API 11 (Maps) .. SKIPPED
[INFO] Android Add-On Google Platform 3.1 API 12 (Maps and USB) SKIPPED
[INFO] Android Add-On Google Platform 3.2 API 13 (Maps and USB) SKIPPED
[INFO] Android Add-On Google Platform 4.0 API 14 (Maps and USB) SKIPPED
[INFO] Android Add-On Google Platform 4.0.3 API 15 (Maps and USB) SKIPPED
[INFO] Android Extras .................................... SKIPPED
[INFO] Android Compatibility Extra V4 .................... SKIPPED
[INFO] Android Compatibility Extra V13 ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.912s
[INFO] Finished at: Thu Dec 22 16:19:43 CET 2011
[INFO] Final Memory: 7M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project google-apis-4: Properties file not found: D:\Programme\Android\android-sdk\add-ons\addon-google_apis-google_inc_-4\source.properties -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :google-apis-4

So I reinstalled all the Packages as it was mentioned under "known issues". Maybe this is an easy error
but i am new to maven so i dont know what todo. I hope you can help me.

Best Regards

Hi, add-on folder names are different whenever they are downloaded

Hi, I am following your guide but I have problem with add-on folder names. Whenever I download them, always api3 to 13 have addon_google_apis_google_inc_x but ap14, 15 addon-google_apis-google-14. So the build causes error due to the name issue.
How can I solve this issue?

Thanks.

Android Future Usb support

Insite google apis 10, there is a usb.jar needed by the Google ADK Challenger.

Along with the issue, i'm also seding a pull request of my impl of the gap :D

thanks

Google Analytics Path is broken

[INFO] Android Compatibility Extra V7 Gridlayout Library . SUCCESS [38.402s]
[INFO] Android Compatibility Extra V13 ................... SUCCESS [0.169s]
[INFO] Android Google Analytics Extra .................... FAILURE [0.007s]
[INFO] Android Google AdMob Ads Extra .................... SKIPPED
[INFO] Android Google Cloud Messaging Library Extra Parent SKIPPED
[INFO] Android Google Cloud Messaging Client Library Extra SKIPPED
[INFO] Android Google Cloud Messaging Server Library Extra SKIPPED
[INFO] Android Google Play Services Extra ................ SKIPPED
[INFO] Android Google Play Licensing Extra ............... SKIPPED
[INFO] Android Extras - Apk Expansion .................... SKIPPED
[INFO] Android Google Play APK Expansion Extra - ZIP ..... SKIPPED
[INFO] Android Google Play APK Expansion Extra - Downloader SKIPPED
[INFO] Android Tools ..................................... SKIPPED
[INFO] Android Annotations ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 53.510s
[INFO] Finished at: Sun Feb 24 19:24:08 EST 2013
[INFO] Final Memory: 21M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default) on project analytics: The specified file '/Users/fuzion24/bin/android-sdk-macosx/extras/google/analytics_sdk_v2/libGoogleAnalytics.jar' not exists -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :analytics

Properties file not found: /home/tom/opt/maven-android-sdk-deployer/platforms/android-12/${env.ANDROID_HOME}/platforms/android-12/source.properties

Running this: mvn install -P 3.1 and I get the above error.

Current system: Ubuntu 11.04 32 bit.

Things I've done / double checked:

  1. I've updated my android sdk: android update sdk -f -u -o
  2. I've also ensured that all my platforms directory are named android-3,android-4, etc.
  3. ANDROID_HOME is /home/tom/opt/android-sdk-linux

Any tips/pointers would be greatly appreciated. Thanks.

Error in more detail:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Maven Android SDK Deployer
[INFO] Android Platforms
[INFO] Android Platform 3.1 API 12
[INFO] Android Add-Ons
[INFO] Android Add-On Google Platform 3.1 API 12
[INFO] Android Extras
[INFO] Android Compatibility Extra V4
[INFO] Android Compatibility Extra V13
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Android SDK Deployer 0.3.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ maven-android-sdk-deployer ---
[INFO] Installing /home/tom/opt/maven-android-sdk-deployer/pom.xml to /home/tom/.m2/repository/com/simpligility/android/sdk-deployer/maven-android-sdk-deployer/0.3.4/maven-android-sdk-deployer-0.3.4.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platforms 0.3.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-platforms ---
[INFO] Installing /home/tom/opt/maven-android-sdk-deployer/platforms/pom.xml to /home/tom/.m2/repository/com/simpligility/android/sdk-deployer/android-platforms/0.3.4/android-platforms-0.3.4.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 3.1 API 12 0.3.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-12 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [0.640s]
[INFO] Android Platforms ................................. SUCCESS [0.004s]
[INFO] Android Platform 3.1 API 12 ....................... FAILURE [0.064s]
[INFO] Android Add-Ons ................................... SKIPPED
[INFO] Android Add-On Google Platform 3.1 API 12 ......... SKIPPED
[INFO] Android Extras .................................... SKIPPED
[INFO] Android Compatibility Extra V4 .................... SKIPPED
[INFO] Android Compatibility Extra V13 ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.939s
[INFO] Finished at: Sun Aug 28 14:33:56 MDT 2011
[INFO] Final Memory: 3M/54M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-12: Properties file not found: /home/tom/opt/maven-android-sdk-deployer/platforms/android-12/${env.ANDROID_HOME}/platforms/android-12/source.properties -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :android-12

Google APIs for Linux

The Google APIs for Linux are in a different path than on other platforms. This causes an install error.
Here is the patch you'll need to sucessfully install the Google APIs on Linux.

diff --git a/add-ons/pom.xml b/add-ons/pom.xml
index 03c4530..527332c 100644
--- a/add-ons/pom.xml
+++ b/add-ons/pom.xml
@@ -15,7 +15,7 @@
     <properties>
         <jar.path>${sdk.addons.path}/${addon.directory}/libs/maps.jar</jar.path>
         <jar.version>${AndroidVersion.ApiLevel}_r${Pkg.Revision}</jar.version>
-        <addon.directory>addon-google_apis-google_inc_-${jar.simpleVersion}</addon.directory>
+        <addon.directory>addon-google_apis-google-${jar.simpleVersion}</addon.directory>
         <usb.jar.path>${sdk.addons.path}/${addon.directory}/libs/usb.jar</usb.jar.path>
     </properties>

ArtifactId confusion due to com.google.android and android.support naming.

Basically i have the following problem:

My app depends on A, which depends on com.google.android:support-v4:r7.
Which you can see in the dependecy:tree

[INFO] +- com.viewpagerindicator:library:apklib:2.4.1:compile
[INFO] |  \- com.google.android:support-v4:jar:r7:compile

At a certain point my apps needed to access r11 of the support-v4 library.

[INFO] +- android.support:compatibility-v4:jar:11:compile

But as you know, android.support:compatibility-v4 and com.google.android:support-v4 are actually the same libraries. Only named differently to avoid confusion. I understand this decision, but this causes some problems.

As you can see the class is defined twice, logically because mvn doesnt know the difference.

[INFO] UNEXPECTED TOP-LEVEL EXCEPTION:
[INFO] java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/LoaderManager;
[INFO]  at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[INFO]  at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
...

My current workaround is to exlcude the com.google.android:support-v4 lib:

        <dependency>
            <groupId>com.viewpagerindicator</groupId>
            <artifactId>library</artifactId>
            <version>2.4.1</version>
            <type>apklib</type>
            <!-- we need to exclude this because we use r11 and is called android.support from maven-android-sdk-deployer -->
            <exclusions>
                <exclusion>
                    <groupId>com.google.android</groupId>
                    <artifactId>support-v4</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

But this is rather ugly. And my IDE shows errors anywherer because it doesnt know where to find class files anymore.

The point is: We need one naming system! Can't we agree with the ones in maven central?

I heard google is moving to gradle. Hope they will provided mvn libs too.

Wrong path for sdk.extras.compatibility.path

On OS X, latest Android SDK, always used the GUI installer. Had to edit pom.xml and change the path to <sdk.extras.compatibility.path>${android.sdk.path}/android-compatibility</sdk.extras.compatibility.path> for mvn install -P 4.0.3 to work.

SDK deployer fails to find SDK

The paths to the SDK platform versions expected by the POM files do no match with those of the SDK installed on disk.

android-17 may have been renamed to android-4.2

As of Android 4.2 (API 17) SDK Platform rev. 2 it appears that the android-17 directory has been renamed to android-4.2. This breaks the deployer which is looking for android-17. A temporary workaround is to create a symlink from android-17 to android-4.2.

ln -s android-4.2 android-17

Properties file not found: D:\android-sdk-windows\add-ons\addon-google_apis-google_inc_-11\source.properties

When I use "mvn clean install -P 3.0" I got the error message like this:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Maven Android SDK Deployer
[INFO] Android Platforms
[INFO] Android Platform 3.0 API 11
[INFO] Android Add-Ons
[INFO] Android Add-On Google Platform 3.0 API 11 (Maps)
[INFO] Android Extras
[INFO] Android Compatibility Extra V4
[INFO] Android Compatibility Extra V13
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Android SDK Deployer 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ maven-android-sdk-deployer ---
[INFO] Installing D:\workspace\maven-android-sdk-deployer\pom.xml to C:\Users\Administrator.m2\repository\com\simpligility\android\sdk-deployer\maven-android-sdk-deployer\1.1.0\maven-android-sdk-deployer-1.1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platforms 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-platforms ---
[INFO] Installing D:\workspace\maven-android-sdk-deployer\platforms\pom.xml to C:\Users\Administrator.m2\repository\com\simpligility\android\sdk-deployer\android-platforms\1.1.0\android-platforms-1.1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Platform 3.0 API 11 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ android-11 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-11 ---
[INFO] Installing D:\workspace\maven-android-sdk-deployer\platforms\android-11\pom.xml to C:\Users\Administrator.m2\repository\com\simpligility\android\sdk-deployer\android-11\1.1.0\android-11-1.1.0.pom
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default) @ android-11 ---
[INFO] Installing D:\android-sdk-windows\platforms\android-11\android.jar to C:\Users\Administrator.m2\repository\android\android\3.0_r2\android-3.0_r2.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Add-Ons 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ android-add-ons ---
[INFO] Installing D:\workspace\maven-android-sdk-deployer\add-ons\pom.xml to C:\Users\Administrator.m2\repository\com\simpligility\android\sdk-deployer\android-add-ons\1.1.0\android-add-ons-1.1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Android Add-On Google Platform 3.0 API 11 (Maps) 1.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ google-apis-11 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [0.321s]
[INFO] Android Platforms ................................. SUCCESS [0.010s]
[INFO] Android Platform 3.0 API 11 ....................... SUCCESS [0.138s]
[INFO] Android Add-Ons ................................... SUCCESS [0.007s]
[INFO] Android Add-On Google Platform 3.0 API 11 (Maps) .. FAILURE [0.004s]
[INFO] Android Extras .................................... SKIPPED
[INFO] Android Compatibility Extra V4 .................... SKIPPED
[INFO] Android Compatibility Extra V13 ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.692s
[INFO] Finished at: Fri Feb 24 11:47:38 CST 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project google-apis-11: Properties file not found: D:\android-sdk-windows\add-ons\addon-google_apis-google_inc_-11\source.properties -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project google-apis-11: Properties file not found: D:\android-sdk-windows\add-ons\addon-google_apis-google_inc_-11\source.properties
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Properties file not found: D:\android-sdk-windows\add-ons\addon-google_apis-google_inc_-11\source.properties
at org.codehaus.mojo.properties.ReadPropertiesMojo.execute(ReadPropertiesMojo.java:110)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :google-apis-11

But I 'm sure I have android-11 platform and the corresponding addon-google_apis-google_inc_-10.

Expecting your help . Thanks..

Support for annotations.jar

Would be very useful install/deploy also
SDK/tools/support/annotations.jar
It contain android annotation like @SuppressLint or @TargetApi which can ADT automatically add
Eclipse or ANT build script add this automatically as compile dependency against API older than 16
android.jar from API 16 contain directly all classes from annotations.jar

once artifacts deployed, a build should be possible on a build machine with a 'bare' sdk

Maybe this is a question rather than an issue.

Why is it that even after all the android platform jars are built and uploaded to the maven repo, I still need all of the platform APIs to be available under the ANDROID_HOME when building with the android maven plugin?

I would expect that deploying the sdk to maven makes all its components available to any one declaring a dependency on one of it's artifacts.

If the platform APIs still need to be manually downloaded under ANDROID_HOME, what is the purpose of making them available under the maven repo?

Thanks. Great work.

Android Google Play APK Expansion Extra - Downloader FAILURE: Platform/API level 16 not available

I'm getting this error when running 'mvn clean install -P2.3.3' from the root folder.

I'ts that OK? I've not installed the API16 SDK, but I'm assuming that it should work beside this.

This is the error:
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources
(default-generate-sources) on project play-apk-expansion-downloader: Execution default-generate-sources of goal com.jayw
ay.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources failed: Invalid SDK: Platform/API level
16 not available.

V7 Compatibility Gridlayout broken

In order to work this artifact actually needs to be an apklib and not just a jar. Need to look into creating the apklib with some maven magic with the resources and the class files in there..

Might be a challenge..

Missing jars in the sdk folder will cause a stack trace

It would be nice to avoid this kind of errors.
mvn install should install only the available jars.

here's the stacktrace when running mvn -e install without googlemaps api level 11 in my sdk folder.

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Properties file not found: /Users/myself/Documents/android-sdk-mac_x86/add-ons/addon_google_apis_google_inc_11/source.properties
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Properties file not found: /Users/carlosse/Documents/android-sdk-mac_x86/add-ons/addon_google_apis_google_inc_11/source.properties
at org.codehaus.mojo.properties.ReadPropertiesMojo.execute(ReadPropertiesMojo.java:110)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
... 17 more

Cannot install a single specific platform version

I had 1.5 and 1.6 platform revisions installed under my SDK installation (as managed by the ADT platform and AVD manager), since I have no need for Android 1.1 or 2.0 at this time.

When running "mvn install", the build breaks because it assumes that 1.1 is installed on my system. That shouldn't happen. The platforms/ directory under the SDK home should be scanned for installed SDK versions and revisions, and only those should be considered for being installed as artifacts to the local maven repo.

PS: thanks for the great tool :-)

addons problem

Hi.
I have a problem to install addons from 8 API and later
The problem is in the folder names:

addon-google_apis-google-3
addon-google_apis-google-4
addon-google_apis-google-7
addon-google_apis-google_inc_-8
addon-google_apis-google_inc_-10
addon-google_apis-google_inc_-11
addon-google_apis-google_inc_-12
addon-google_apis-google_inc_-13
addon-google_apis-google_inc_-14
addon-google_apis-google_inc_-15

Fails to deploy

I've setup a Jenkins job to do the deployment using:
-e -X -Dandroid.sdk.path=/usr/local/android -Drepo.id=playhaven-thirdparty -Drepo.url=https://nexus.betahaven.com/nexus/content/repositories/thirdparty clean deploy -Pall,with-javadoc

It doesn't give any [ERROR]s or stack traces - it just fails...

(clipped)
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://nexus.betahaven.com/nexus/content/repositories/thirdparty as deployment
Uploading: https://nexus.betahaven.com/nexus/content/repositories/thirdparty/android/android/1.5_r4/android-1.5_r4.jar
mojoStarted org.apache.maven.plugins:maven-deploy-plugin:2.7(a)
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (a) @ android-3 ---
Uploading: https://nexus.betahaven.com/nexus/content/repositories/thirdparty/android/android/1.5_r4/android-1.5_r4.pom
Uploaded: https://nexus.betahaven.com/nexus/content/repositories/thirdparty/android/android/1.5_r4/android-1.5_r4.pom (388 B at 0.8 KB/sec)
mojoFailed org.apache.maven.plugins:maven-deploy-plugin:2.7(a)
projectFailed com.simpligility.android.sdk-deployer:android-3:2.1.0
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [20.639s]
[INFO] Android Platforms ................................. SUCCESS [12.916s]
[INFO] Android Platform 1.5 API 3 ........................ FAILURE [18.882s]
[INFO] Android Platform 1.6 API 4 ........................ SKIPPED
(clipped)

I know the credentials are OK because it puts a couple files in Nexus (the android-1.5_r4.pom for example). It does not upload any jars.

Any thoughts?

Obtain and install/deploy source and javadoc jars?

Is it reasonable to have the maven-android-sdk-deployer also install/deploy the android source and/or javadoc jars along with the binary jars? Ideally, automatically obtaining the source, but if not, using local jars just as it uses the SDK jars.

Googling shows many custom scripts by many people to obtain the android source from git and make the jar, but would be far superior to have all-in-one with this tool.

Google API - Add-on - API4 upgraded to revision 2

I downloaded the "Google APIs by Google Inc., Android API4, revision 2" today.

Looks like this has been recently upgraded from revision 1 to revision 2:

  • The "add-ons/google-apis-4-r01/pom.xml" is looking in the "addon.directory" "google_apis-4-r01". The actual folder (for revision 2) is "add-ons/google_apis-4_r02".

maven-android-sdk-deployer not reading environment variable?

This issue is related to #15. I don't think that issue is actually resolved, but maybe it is. First, I running "android update sdk -f -u -o" didn't work for me. Also, it took me over 2 hours at ~500KB/s and it was unnecessary as I already had the right naming convention.

Steps to reproduce:

  • grab a fresh checkout of this project
  • run mvn clean install

Expected:
Success

Actual:
[INFO] Properties file not found: [...]/maven-android-sdk-deployer/platforms/android-3/null/platforms/android-3/source.properties

Notes:

  • typing "echo $ANDROID_HOME" gives the proper root path to my SDK installation

  • Changing this line in the POM with the output of "echo $ANDROID_HOME" gives the expected results:

    <!-- absolute path to the Android SDK install as defined in the ANDROID_HOME environment variable -->
    <android.sdk.path>${env.ANDROID_HOME}/</android.sdk.path>
    

Missing maven dependencies

Hi,
if I'm refercing following maven dependency in my pom.xml then the dependency hierachy looks like this:
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.3.3</version>
<scope>provided</scope>
</dependency>
Dependencies: http://goo.gl/471sA

If I'm referncing your generated android.jar it looks like this:
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>2.3.3_r2</version>
<scope>provided</scope>
</dependency>
Dependencies: http://goo.gl/Qj4kt

For my unit tests (I'm using Robolectric) I need some of these dependencies. Is there a reason why your generated android.jar is not depending on these?

mvn deploy of Android Google Play Licensing Extra fail.

"mvn clean deploy" fail on play licensing. ("mvn clean install" works) building with jenkins.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [2.534s]
[INFO] Android Platforms ................................. SUCCESS [0.192s]
[INFO] Android Platform 1.5 API 3 ........................ SUCCESS [0.670s]
[INFO] Android Platform 1.6 API 4 ........................ SUCCESS [0.541s]
[INFO] Android Platform 2.1 API 7 ........................ SUCCESS [0.572s]
[INFO] Android Platform 2.2 API 8 ........................ SUCCESS [0.467s]
[INFO] Android Platform 2.3.3 API 10 ..................... SUCCESS [0.678s]
[INFO] Android Platform 3.0 API 11 ....................... SUCCESS [0.591s]
[INFO] Android Platform 3.1 API 12 ....................... SUCCESS [0.589s]
[INFO] Android Platform 3.2 API 13 ....................... SUCCESS [0.837s]
[INFO] Android Platform 4.0 API 14 ....................... SUCCESS [0.814s]
[INFO] Android Platform 4.0.3 API 15 ..................... SUCCESS [0.717s]
[INFO] Android Platform 4.1 API 16 ....................... SUCCESS [1.036s]
[INFO] Android Platform 4.2 API 17 ....................... SUCCESS [0.978s]
[INFO] Android Add-Ons ................................... SUCCESS [0.214s]
[INFO] Android Add-On Google Platform 1.5 API 3 (Maps) ... SUCCESS [0.519s]
[INFO] Android Add-On Google Platform 1.6 API 4 (Maps) ... SUCCESS [0.374s]
[INFO] Android Add-On Google Platform 2.1 API 7 (Maps) ... SUCCESS [0.538s]
[INFO] Android Add-On Google Platform 2.2 API 8 (Maps) ... SUCCESS [0.358s]
[INFO] Android Add-On Google Platform 2.3.3 API 10 (Maps and USB) SUCCESS [0.396s]
[INFO] Android Add-On Google Platform 3.0 API 11 (Maps) .. SUCCESS [0.363s]
[INFO] Android Add-On Google Platform 3.1 API 12 (Maps and USB) SUCCESS [0.692s]
[INFO] Android Add-On Google Platform 3.2 API 13 (Maps and USB) SUCCESS [0.590s]
[INFO] Android Add-On Google Platform 4.0 API 14 (Maps and USB) SUCCESS [0.601s]
[INFO] Android Add-On Google Platform 4.0.3 API 15 (Maps and USB) SUCCESS [0.648s]
[INFO] Android Add-On Google Platform 4.1 API 16 (Maps and USB) SUCCESS [0.380s]
[INFO] Android Add-On Google Platform 4.2 API 17 (Maps and USB) SUCCESS [0.499s]
[INFO] Android Extras .................................... SUCCESS [0.358s]
[INFO] Android Compatibility Extra V4 .................... SUCCESS [0.489s]
[INFO] Android Compatibility Extra V7 Gridlayout Library . SUCCESS [2.686s]
[INFO] Android Compatibility Extra V13 ................... SUCCESS [0.603s]
[INFO] Android Google Analytics Extra .................... SUCCESS [0.474s]
[INFO] Android Google AdMob Ads Extra .................... SUCCESS [0.439s]
[INFO] Android Google Cloud Messaging Library Extra Parent SUCCESS [0.100s]
[INFO] Android Google Cloud Messaging Client Library Extra SUCCESS [0.546s]
[INFO] Android Google Cloud Messaging Server Library Extra SUCCESS [0.359s]
[INFO] Android Google Play Services Extra ................ SUCCESS [1.809s]
[INFO] Android Google Play Licensing Extra ............... FAILURE [1.226s]
[INFO] Android Extras - Apk Expansion .................... SKIPPED
[INFO] Android Google Play APK Expansion Extra - ZIP ..... SKIPPED
[INFO] Android Google Play APK Expansion Extra - Downloader SKIPPED
[INFO] Android Tools ..................................... SKIPPED
[INFO] Android Annotations ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.351s
[INFO] Finished at: Mon Jan 14 13:44:32 CET 2013
[INFO] Final Memory: 25M/180M

.....
.....

message : Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (jar-file) on project play-licensing: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing or invalid
cause : The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing or invalid
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (jar-file) on project play-licensing: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing or invalid
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing or invalid
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:576)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
channel stopped

Reinstalling add-ons from command-line

Hi, the documentation says that if a format of add-on folders is wrong, I need to reinstall the add-ons. I read the official documentation and didn't find how to do it on the headless machine with only command line. Could you please advise?

maven-android-sdk-deployer not working with latest version of android SDK with addon_google_apis_google_inc_7

To reproduce:

$ git clone https://github.com/mosabua/maven-android-sdk-deployer.git
$ cd maven-android-sdk-deployer/
$ mvn install

Error message:

[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project google-apis-3: Properties file not found: /opt/android-sdk-linux_x86/add-ons/addon_google_apis_google_inc_3/source.properties -> [Help 1]

Option to exclude third-party stubs

When using the Android Maven Plugin (maven3) to run plain non-instrumented unit tests I get these "java.lang.RuntimeException: Stub!" exceptions.

I have to put the android dependency last and put everything that is implemented as stub as test scoped dependencies: junit, commons-logging, httpclient, json, android.text.format.Time ...

The android artifacts in maven central don't have these stubs deployed, would be nice if it would also be the case here.

Fails to install extras (did the folder structure change again?)

When I try to install e.g. the compatibility libraries, the deployer fails with an error:

[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project compatibility-v4: Properties file not found: /Users/matthias/Library/Development/android-sdk-mac_86/extras/android/support/source.properties -> [Help 1]

there is no such folder in my SDK installation (extras/android/support), instead, that folder is called extras/android/compatibility.

Perhaps Google changed the names of the directories with a recent SDK release?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.