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

maven android plugin with error ( dependency=[android.support:compatibility-v7:apklib:19:compile] not found )

I am using maven 3.1.1. with Eclipse Kepler installed with Android-Configurator-for-M2E. My POM.XML looks like:
revolutionary
  • 3,314
  • 4
  • 36
  • 53
1
vote
1 answer

How to specify AndroidAnnotations source generation directory for maven?

In the document describing setting up maven for AA (http://www.ashokgelal.com/2012/12/setting-up-intellij-idea-12-with-maven-actionbarsherlock-roboelectric-androidannotations/) there's no option to configure the source generation directory (where…
javaxian
  • 1,815
  • 1
  • 21
  • 26
1
vote
1 answer

maven-android-plugin No Android API Level has been configured

I'm getting this error when trying to build my android project using maven-android-plugin: [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.0:generate-sources (default-generate-sources) on project…
Zoltán
  • 21,321
  • 14
  • 93
  • 134
1
vote
1 answer

Android Maven archtype project layout doesn't show correct on ADT Graphical Editor

I created an Android-Maven archetype project using command line (http://stand.spree.de/wiki_details_maven_archetypes). When I imported this project to ADT (so that I can take some advantage of the graphical editor), I found the graphical editor…
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
1
vote
1 answer

How to update androidManifest uses-permissions before renameManifestPackage with maven?

I need to build the same application 5 times with 5 packages. I'm using , it's working, all the apps can be on one phone. But I need to use C2D_MESSAGE permission I tried this answer
Beuj
  • 602
  • 6
  • 20
1
vote
1 answer

How to add thirdparty jar to android maven project?

I have already searched stackoverflow for this issue and did not get solution. I have one Android Maven project my-app to which I want to add one thirdparty lib jar. I created dependency tag in pom file of android project as below
1
vote
1 answer

Including dagger generated sources in an apklib

I have a mavenized apklib which uses dagger (1.1.0) internally. The maven build generates the annotations folder inside the build output folder with the appropriate adapter classes. However, these are not included in the generated apklib. What's the…
Tomer Weller
  • 2,812
  • 3
  • 26
  • 26
1
vote
2 answers

How do I fix manifest-update lifecycle error of android-maven-plugin in Eclipse?

When I import an Android Maven project into my Eclipse workspace I am seeing this error in pom.xml: Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:manifest-update …
friederbluemle
  • 33,549
  • 14
  • 108
  • 109
1
vote
1 answer

How to create an eclipse-compatible, mavenised Android project?

I need to create a Maven project for my Android application. When I use the normal Android Maven plugin, it produces a file structure with incorrect location of test classes (the test classes lie where Maven expects them, but eclipse doesn't and it…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
1
vote
0 answers

Is there a way to deploy all apks from a multi module maven project?

I'm trying to create a multi module maven project from several inter-dependent android projects. I've created individual pom files under the module folders and created a pom.xml in the parent folder. I've added all the modules to the parent…
Tackle
  • 13
  • 4
1
vote
1 answer

facebook-androidk-sdk 3.0.1 as library project in maven android

I'm using maven to manage my dependency, how can i add the facebook-androidk-sdk 3.0.1 as library project in pom. Where i can get the latest code for facebook sdk 3.0.1 I treed to build the apk, but I'm gettting following error please advice how to…
Sam
  • 6,215
  • 9
  • 71
  • 90
1
vote
0 answers

Pulling artifacts by Android Maven plugin

I have a problem with android maven plugin. I want pull artifact from device to my workspace. Wrote config in pom file /sdcard/test ${basedir}/target I dont hardcoded…
1
vote
1 answer

Android, Maven and Jackson

I'm trying to take Jackson into use in my Android app project. Everything else works nice but running tests in CI through Maven fail, if I run the same test from Eclipse it works but then I'm not using Maven POM files i.e. I'm not importing the…
pmellaaho
  • 792
  • 1
  • 8
  • 15
1
vote
1 answer

Why mvn android:lint skips sub modules?

Why does android:lint only scans my Aggregator Project for Lint warnings and skips the "APP" Module ? In the POM of the APP Module i defined: com.jayway.maven.plugins.android.generation2
Kitesurfer
  • 3,438
  • 2
  • 29
  • 47
1
vote
1 answer

Android with Maven and IntelliJ

For the past 3 weeks I've played heavily with Android Maven build process. For the most part I find it a much better experience than Eclipse but have a few questions I'd like answered: Is there a way to make Eclipse work with APKLIB files without…
jjNford
  • 5,170
  • 7
  • 40
  • 64