I would like to be able to check out my Android app project and do “mvn package” and get an .apk without having to:
- manually “android update sdk”, and
- manually sticking jars in my local maven repository.
Is there a plugin (or plugins) that can do this?
Currently, I have to first do various “android update sdk” and then use https://github.com/mosabua/maven-android-sdk-deployer to stick jar files into my local repo for Maven to find them.
(This seems like a question that should have been asked many times before, but my search-fu fails me.)
EDIT: Sorry, my bad. I should know by now that no question without source code is complete. Yes, there are maps dependencies. Also, as far as I can tell, there is a rather limited selection of jars. For example, there seem to be no 4.0.3 jar here: http://search.maven.org/#search|gav|1|g%3A%22com.google.android%22%20AND%20a%3A%22android%22
My current dependencies:
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.0.3_r3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android.maps</groupId>
<artifactId>maps</artifactId>
<version>15_r2</version>
<scope>provided</scope>
</dependency>
Unless you are targeting Honeycomb, this shouldn’t be necessary. The SDK libraries for recent versions are already available in the central repository. Even the SDK deployer README says so: