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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s