Questions tagged [android-maven-plugin]

The android-maven-plugin allows building of Android applications and libraries with Apache Maven and provides many more features related to Android development.

android-maven-plugin (formerly maven-android-plugin) brings the power of Maven to Android project development. It lets you build Android application (apk) projects as well as application libraries (apklib) and Android archives (aar) with Maven, with simple and powerful configuration. It has features like deploying to all attached devices, running instrumentation tests, taking screenshots, running lint, zipalign, proguard and many more.

208 questions
1
vote
1 answer

how to specify the target device (or emulator) on the command line with android maven plugin?

The question is basically what are the arguments that I need to pass in the command line in order to specify the target device (or emulator) with android maven plugin.
Thomas
  • 2,751
  • 5
  • 31
  • 52
1
vote
1 answer

Maven doesn't recognize apklib dependencies in test scope

So I have some classes in a module I wrote to help with Robolectric style unit tests, and I want to be able to share this module in a bunch of my other modules. This module has unit tests of its own, and I have set it up as an apklib. I'm using the…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
1
vote
1 answer

How can I add an apklib dependency to your android maven project?

I have an android project which I am developing on eclipse and building with maven. I wanted to include a lib (apklib) in it, and similarly to other includes, I have tried appending the dependency to my pom in the following way:
Thomas
  • 2,751
  • 5
  • 31
  • 52
1
vote
1 answer

How do you import multiple build types of a native library with Android Maven Plugin

How do you import multiple build types of a the same native library with Maven? A little context, I'm using the Android Maven Plugin, and I'm trying to import a native library that was build for several different CPU architectures. I read the post…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
1
vote
2 answers

How to include thridparty jars in my Android APK with android-maven?

I am using android-maven-plugin to manage my android project. But maven doesn't package the thirdparty jars when generating the apk. How should I configue the pom.xml?
Evans Y.
  • 4,209
  • 6
  • 35
  • 43
1
vote
1 answer

jenkins-maven-android when running throwing the error “android-sdk-linux/platforms” is not a directory"

I start setting up the jenkins-maven-android and i'm facing an issue when running the jenkin job Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources failed: Path…
Sam
  • 6,215
  • 9
  • 71
  • 90
1
vote
1 answer

Build fail using maven android with ActionBarSherlock and Roboguice

I've started an Android project in my spare time a couple months ago. To allow friends to easily collaborate I want to use maven, but I fail to build my project. My project use ActionBarSherlock and Roboguice (and the Roboguice Sherlock lib to allow…
a.b.d
  • 2,190
  • 3
  • 26
  • 26
1
vote
1 answer

Android app's reference to android library project broken after Maven->Update Project

I've got an android project and an android library project (my own) it depends on. I'm using maven, including maven-android-plugin, for the automated build, and Eclipse as my IDE, with m2eclipse and m2e-android to bridge the two. For the most part,…
Andy Dennie
  • 6,012
  • 2
  • 32
  • 51
1
vote
1 answer

Instaling apk via maven

I'm wondering how can i add an .apk file to my pom.xml for, in order, install app from apk file and in second step build project with tests, lunch emulator, install apk which will be testing etc,etc. For now first apk is installed manually but i…
Kamil
  • 467
  • 2
  • 13
1
vote
1 answer

Android maven using wrong java version

I'm compiling my Android project against Android V2.2.1, I'm using an Android dependency: com.google.android android 2.2.1
Efi MK
  • 1,022
  • 1
  • 11
  • 26
1
vote
2 answers

Updating a maven library project into main project (android)

i'm trying to understand Maven Android Plugin with the examples found here: https://github.com/jayway/maven-android-plugin-samples/archives/stable I'm using the example "libraryproject" and all is working good, only one thing i really can't figure…
Laphroaig
  • 619
  • 4
  • 12
  • 26
0
votes
1 answer

maven-android-plugin failed always on aapt not found

[INFO] /bin/sh: /opt/tools/android-sdk-linux/platform-tools/aapt: not found [ERROR] Error when generating sources. org.apache.maven.plugin.MojoExecutionException: at…
eric
  • 73
  • 5
0
votes
2 answers

Maven builds on Android project using a library project causing duplicate R class errors

I have an Android project that depends on an android library (apklib) project. The projects builds fine within Eclipse but my command line build using maven fails complaining of duplicate R class (the R class from my android library project).…
Sunil Gowda
  • 2,476
  • 2
  • 17
  • 13
0
votes
1 answer

maven: apklib "expanding to null"

I'm trying to use an apklib in my Maven build. I've pushed it to my local repository with install:install-file as usual. Then it gets included in the build with: com.scoreloop
vertti
  • 7,539
  • 4
  • 51
  • 81
0
votes
1 answer

maven-android-plugin passing build properties

I have a property file in asset folder, i want to override the values in this property file at project build time. like mvn clean install -Durl=https://xyx.xom? EX: assets/my_prop.properties # my_server_url=http://www.test.com/ change to…
Sam
  • 6,215
  • 9
  • 71
  • 90