title: Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources
body: <p>I have an Android application, which is built using <code>pom.xml</code> file given below.  <code>mvn clean install</code> works without errors, but in Eclipse I get following errors:</p>
  
  <pre><code>Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources (execution: default-generate-sources, phase: generate-sources)
  Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:proguard (execution: default-proguard, phase: process-classes)
  </code></pre>
  
  <p>How can I fix them?</p>
  
  <p>Here's the <code>pom.xml</code> file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.mycompany&lt;/groupId&gt;
      &lt;artifactId&gt;myapp-android&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;apk&lt;/packaging&gt;
      &lt;name&gt;myappAndroidClient&lt;/name&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;achartengine&lt;/id&gt;
              &lt;name&gt;Public AChartEngine repository&lt;/name&gt;
              &lt;url&gt;https://repository-achartengine.forge.cloudbees.com/snapshot/&lt;/url&gt;
          &lt;/repository&gt;       
      &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.android&lt;/groupId&gt;
              &lt;artifactId&gt;android&lt;/artifactId&gt;
              &lt;version&gt;4.1.1.4&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.8.2&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Make sure this (robolectric dependency) is below the android dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.pivotallabs&lt;/groupId&gt;
              &lt;artifactId&gt;robolectric&lt;/artifactId&gt;
              &lt;version&gt;1.0-RC4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.achartengine&lt;/groupId&gt;
              &lt;artifactId&gt;achartengine&lt;/artifactId&gt;
              &lt;version&gt;1.1.0&lt;/version&gt;
          &lt;/dependency&gt;               
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.6&lt;/source&gt;
                          &lt;target&gt;1.6&lt;/target&gt;
                          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                      &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.5.0&lt;/version&gt;
  
                      &lt;extensions&gt;true&lt;/extensions&gt;
  
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                  &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;sdk&gt;
                              &lt;!-- platform or api level (api level 4 = platform 1.6) --&gt;
                              &lt;platform&gt;17&lt;/platform&gt;
                              &lt;path&gt;C:\Program Files\adt-bundle-windows-x86\adt-bundle-windows-x86\sdk&lt;/path&gt;
                          &lt;/sdk&gt;
                      &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;reporting&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;javancss-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;targetJdk&gt;1.7&lt;/targetJdk&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;configLocation&gt;altruix-checkstyle.xml&lt;/configLocation&gt;
                      &lt;includeTestSourceDirectory&gt;true&lt;/includeTestSourceDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;formats&gt;
                          &lt;format&gt;html&lt;/format&gt;
                          &lt;format&gt;xml&lt;/format&gt;
                      &lt;/formats&gt;
                      &lt;instrumentation&gt;
                          &lt;excludes&gt;
                              &lt;exclude&gt;**/*Test.class&lt;/exclude&gt;
                          &lt;/excludes&gt;
                      &lt;/instrumentation&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.1&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;inputEncoding&gt;UTF-8&lt;/inputEncoding&gt;
                      &lt;outputEncoding&gt;UTF-8&lt;/outputEncoding&gt;
                      &lt;locales&gt;en&lt;/locales&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;jdepend-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Update 1 (06.03.2013)</strong>: Here's the list of installed plugins.</p>
  
  <p><img src="https://i.stack.imgur.com/ymrDX.png" alt="enter image description here"></p>
  
  <p><strong>Update 2 (08.03.2013):</strong> Below you can find the updated <code>pom.xml</code>. Now I get another error - <code>Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:proguard (execution: default-proguard, phase: process-classes)</code> at the place marked by <code>&lt;!-- Error occurs here --&gt;</code> in the XML code below.</p>
  
  <pre><code>    &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.6&lt;/source&gt;
                          &lt;target&gt;1.6&lt;/target&gt;
                          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                                          &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                                          &lt;versionRange&gt;[3.5.0,)&lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;generate-sources&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore /&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                      &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.5.0&lt;/version&gt;
                      &lt;extensions&gt;true&lt;/extensions&gt;
  
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.5&lt;/version&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt; &lt;!-- Error occurs here --&gt;
                  &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                  &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;sdk&gt;
                          &lt;!-- platform or api level (api level 4 = platform 1.6) --&gt;
                          &lt;platform&gt;17&lt;/platform&gt;
                          &lt;path&gt;C:\Program Files\adt-bundle-windows-x86\adt-bundle-windows-x86\sdk&lt;/path&gt;
                      &lt;/sdk&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p><strong>Update 3 (08.03.2013):</strong> When I change the <code>pom.xml</code> file in this way</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;lifecycleMappingMetadata&gt;
              &lt;pluginExecutions&gt;
                  &lt;pluginExecution&gt;
                      &lt;pluginExecutionFilter&gt;
                          &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
                          &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
                          &lt;versionRange&gt;[3.5.0,)&lt;/versionRange&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate-sources&lt;/goal&gt;
                              &lt;goal&gt;proguard&lt;/goal&gt;
                              &lt;goal&gt;emma&lt;/goal&gt;
                              &lt;goal&gt;dex&lt;/goal&gt;
                              &lt;goal&gt;internal-pre-integration-test&lt;/goal&gt;
                              &lt;goal&gt;internal-integration-test&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/pluginExecutionFilter&gt;
                      &lt;action&gt;
                          &lt;ignore /&gt;
                      &lt;/action&gt;
                  &lt;/pluginExecution&gt;
              &lt;/pluginExecutions&gt;
          &lt;/lifecycleMappingMetadata&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;
      &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.0&lt;/version&gt;
      &lt;extensions&gt;true&lt;/extensions&gt;
  
  &lt;/plugin&gt;
  </code></pre>
  
  <p>and run the application from Eclipse, I get following error:</p>
  
  <pre><code>FATAL EXCEPTION: main
  java.lang.NoClassDefFoundError: co.altruix.ccp.android.impl.viewtype2fragmentmapper.DefaultViewTypeToFragmentMapper
      at co.altruix.ccp.android.impl.activities.MainActivity.&lt;init&gt;(MainActivity.java:22)
      at java.lang.Class.newInstanceImpl(Native Method)
      at java.lang.Class.newInstance(Class.java:1319)
      at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
      at android.app.ActivityThread.access$600(ActivityThread.java:141)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loop(Looper.java:137)
      at android.app.ActivityThread.main(ActivityThread.java:5039)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:511)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
      at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>When I run the same application using <code>mvn clean install; mvn android:emulator-start; mvn android:deploy</code>, everything works fine.</p>
  
  <p><strong>Update 4 (11.03.2013 00:24 MSK):</strong> Here's the list of installed plugins in my new eclipse installation:</p>
  
  <p><img src="https://i.stack.imgur.com/BXE2I.png" alt="List of plugins"></p>
  
  <p><strong>Update 5 (12.03.2013 23:22 MSK):</strong> Here's the classpath (achartengine seems to be included):</p>
  
  <p><img src="https://i.stack.imgur.com/guz6m.png" alt="Classpath"></p>
  
  <p>You can also download my <a href="https://dl.dropbox.com/u/11776689/2013_03_12_android-eclipse.7z" rel="noreferrer">Eclipse installation</a>.</p>