Maven, Eclipse and Android

To use maven and eclipse with android projects:

You need the Maven Android Plugin (https://code.google.com/p/maven-android-plugin/) for your maven builds.

And the m2e-android plugin (http://rgladwell.github.io/m2e-android/) for eclipse – otherwise you will get a pom error (“Plugin execution not covered by lifecycle configuration”).

Follow the usual steps to convert a project to maven after m2e-androud plug-in is installed (rt click on project / configure / convert to maven). One thing, when following instructions on the m2e-android plugin page for installing the plugin, you will get multiple hits when searching in the marketplace, the one you want is “Android Configurator for M2E”.

Eclipse puts apk in bin/, mvn puts apk in target/

Obviously this could all change and is only correct at time of writing.