I develop an Android App using eclipse, the Android Development Tools (ADT) plugin and the maven-android-plugin.
Building and installing the application on the commandline (mvn install / adb install) works fine – especially it includes all dependencies specified in the pom.xml.
Deploying the application to Android via eclipse (Run as -> Android Application) does not automatically put the dependencies in the apk file – although specified in the pom.xml. I haven to explicit declare them in the eclipse project Build Path -> Libraries dialog.
Is there a way to make eclipse include the dependencies defined in the pom.xml without definig them twice in the project Build-Path -> Libraries?
EDIT: To clarify – the eclipse project includes a “Maven Dependencies” entry with all dependencies specified in the pom.xml. But these dependencies will not be included in the apk during install via “Run As -> Android Application”. To include them, each one has to be extra added in the “Java Build Path -> Libraries” dialog. That’s the pain!
Perhaps you should look at m2e-android, assuming you are already using M2Eclipse.