title: Eclipse error with osgi + maven + maven-pax-plugin
body: <p>I am trying to create an OSGi bundle and integrate it into eclipse. I am using the maven-pax-plugin to create the bundles. These are the steps I follow</p>
  
  <p>I create an osgi project using pax</p>
  
  <pre><code>mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookbook -DartifactId=osgi-project -Dversion=1.0-SNAPSHOT
  </code></pre>
  
  <p>and then create a bundle</p>
  
  <pre><code>mvn pax:create-bundle -Dpackage=org.sonatype.mcookbook -Dname=osgi-bundle -Dversion=1.0-SNAPSHOT
  </code></pre>
  
  <p>and then try to import the maven project into eclipse  (file/import/existing maven project) the bundle project created in the second step always gives me this error</p>
  
  <pre><code>maven-pax-plugin:1.5:compile (1 error)
     Execution default-compile, in org.sonatype.mcookbook/pom.xml
  maven-pax-plugin:1.5:testCompile (1 error)
     Execution default-testCompile, in org.sonatype.mcookbook/pom.xml
  </code></pre>
  
  <p>When I select one of the errors the description says</p>
  
  <pre><code>No marketplace entries found to handle Execution default-compile, in org.sonatype.mcookbook/pom.xml in Eclipse.  Please see Help for more information.
  </code></pre>
  
  <p>If i ignore the error and import the project anyway this is what eclipse complains about</p>
  
  <pre><code>Plugin execution not covered by lifecycle configuration: org.ops4j:maven-pax-plugin:1.5:compile (execution: default-compile, phase: compile)
  </code></pre>
  
  <p>Has anyone seen this? any ideas how to fix it?
  I am following <a href="http://www.sonatype.com/books/mcookbook/reference/sect-osgi-generate-project.html" rel="noreferrer">this tutorial</a> but adding integration with eclipse. Note however that if I build it with maven and don't use eclipse at all it all works fine, the problem is in eclipse/m2e</p>
  
  <p>I am using Eclipse Indigo SR2 and m2e 1.0.200</p>