I am trying to create an OSGi package and integrate it into eclipse. I am using maven-pax-plugin to create packages. These are the steps that I follow.
I am creating an osgi project using pax
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookbook -DartifactId=osgi-project -Dversion=1.0-SNAPSHOT
and then create the package
mvn pax:create-bundle -Dpackage=org.sonatype.mcookbook -Dname=osgi-bundle -Dversion=1.0-SNAPSHOT
and then try to import the maven project into eclipse (file / import / existing maven project), the package project created in the second step always gives me this error
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
When I select one of the errors, the description says
No marketplace entries found to handle Execution default-compile, in org.sonatype.mcookbook/pom.xml in Eclipse. Please see Help for more information.
If I ignore the error and import the project, anyway this is what eclipse complains about
Plugin execution not covered by lifecycle configuration: org.ops4j:maven-pax-plugin:1.5:compile (execution: default-compile, phase: compile)
Has anyone seen this? any ideas how to fix this? I am following this tutorial but adding integration with eclipse. Please note that if I create it using maven and do not use eclipse, all this works fine, the problem is in eclipse / m2e
I am using Eclipse Indigo SR2 and m2e 1.0.200