Java – Plugin execution not covered by lifecycle configuration: com. jayway.maven.plugins.android.generation2 :android-maven-plugin:3. 8.2:consume-aar

Plugin execution not covered by lifecycle configuration: com. jayway.maven.plugins.android.generation2 :android-maven-plugin:3. 8.2:consume-aar… here is a solution to the problem.

Plugin execution not covered by lifecycle configuration: com. jayway.maven.plugins.android.generation2 :android-maven-plugin:3. 8.2:consume-aar

I

installed Eclipse Kepler, then the Android SDK and the M2E Android Connector plugin so I could manage my Android projects with Maven. However, when I
To create a new project I get the following error:

 Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:consume-aar 

It’s a bit strange because the M2E Android connector is installed, so what causes it and how do I fix it?

Solution

You are experiencing problems because processing consume-aar targets has not been implemented in m2e-android (Android Connector for M2E).

Here is the correlationm2e-android ticket For this reason, witches are again supported by ADT without AAR support ( ADT ticket ) Prevented by the facts.

Until these tickets are fixed, there is a workaround For this, but I can’t guarantee that it will work in all cases (basically it tells Maven to integrate with Eclipse to skip the build step in question).

Another solution is to opt out of Android Studio (as far as I know it’s implemented there).

Hope this helps.

Related Problems and Solutions