Android automation maven

Using the maven android eclipse plugin, is it possible to have a maven configuration that automatically launches the android project (application) in debug mode, so that eclipse automatically joins this process?

Thanks.

+1
source share
2 answers

There is currently no way to run / run the application with Maven Android Plugin. There is a function request to do just that.

http://code.google.com/p/maven-android-plugin/issues/detail?id=102

and that would be pretty easy to do. I have not yet had the opportunity to do this. Feel free to implement it as a standalone mojo and send a pull request. I can definitely take it for release 3.0.

One thing that happens is when you run the control tests that apk will deploy, as well as the test, and the new parameter in the test code allows you to wait for the debugger to connect.

Update:

Now there is a launch target that will launch your main set of actions as a launch in your AndroidManifest and launch the application on all connected devices and emulators.

+2
source

Part of what the maven android eclipse plugin does is setting up your eclipse project project correctly (build path, etc.). If done correctly, using eclipse to run the application in debug mode is the best step. So you can right-click your Android project, Debug As, Android Application.

Just because you use maven does not mean that every action (especially IDE actions) must go through the maven command.

+1
source

Source: https://habr.com/ru/post/898752/


All Articles