How do I fix manifest-update lifecycle error of android-maven-plugin in Eclipse?

1.1k views Asked by At

When I import an Android Maven project into my Eclipse workspace I am seeing this error in pom.xml:

Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:manifest-update (execution: update-manifest, phase: process-resources)

How do I fix it? I am using android-maven-plugin 3.6.1, m2eclipse 1.4, m2e-android 0.4.2 and Eclipse Kepler.

2

There are 2 answers

0
Ricardo Gladwell On BEST ANSWER

This is a known issue with the Android M2E Connector:

https://github.com/rgladwell/m2e-android/issues/78

There is a workaround, you can disable this error message by using the quick fix provided by the m2e plugin:

http://wiki.eclipse.org/M2E_plugin_execution_not_covered

0
Durian On

I solved this issue by putting all plugins inside a <pluginManagement> tag:

<build>
 <pluginManagement>
   <plugins>
    <plugin>
       ...
    </plugin>
   </plugins>
 </pluginManagement>
</build>