Here is the post: http://www.hrupin.com/2011/06/21/how-to-run-android-application-then-you-use-maven-in-your-project
First you need to add the plugin to your POM
<plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <configuration> <executable>${basedir}/scripts/run_app.sh</executable> </configuration> </plugin>
add a script to $ {basedir} / scripts / dir with the following contents:
adb shell am start -a android.intent.action.MAIN -n your.app.package/.YourMainActivity
The command to create and run the application
mvn clean install android: deploy; mvn exec: exec
source share