Question

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 leads to difficulties debugging unit tests in eclipse). There is a workaround for this, but it isn't very elegant.

How can I create a Maven project, which will be compatible with eclipse (allow me to run unit tests in eclipse and - ideally - deploy my application to an emulator from within eclipse) ?

Was it helpful?

Solution

Maybe this project can serve you as inspiration.

Sonatype, one of the main developers of Maven and related projects, has a free chapter about using Maven for Android.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top