我想創建一個OSGi包並將其集成到eclipse中。我正在使用maven-pax-plugin來創建捆綁。這些都是我按照Eclipse錯誤與osgi + maven + maven-pax-plugin
的步驟我使用PAX
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=org.sonatype.mcookbook -DartifactId=osgi-project -Dversion=1.0-SNAPSHOT
,然後創建一個包
mvn pax:create-bundle -Dpackage=org.sonatype.mcookbook -Dname=osgi-bundle -Dversion=1.0-SNAPSHOT
,然後嘗試將Maven項目導入到Eclipse中創建一個OSGi項目(文件/導入/現有Maven項目)在第二個步驟中創建總是包項目給了我這個錯誤
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
當我選擇了錯誤的一個描述說
No marketplace entries found to handle Execution default-compile, in org.sonatype.mcookbook/pom.xml in Eclipse. Please see Help for more information.
如果我忽略錯誤並導入項目反正這就是日食抱怨
Plugin execution not covered by lifecycle configuration: org.ops4j:maven-pax-plugin:1.5:compile (execution: default-compile, phase: compile)
有沒有人見過這個?任何想法如何解決它? 我正在關注this tutorial,但增加了與eclipse的集成。然而,需要注意的是,如果我與Maven構建它,並在所有這一切工作正常不使用Eclipse,問題是在eclipse/M2E
我使用Eclipse靛藍SR2和M2E 1.0.200
看看這個[this](http://stackoverflow.com/a/7392705/367285)答案爲_Plugin執行不包含lifecycle_ eclipse錯誤。 – FrVaBe 2012-07-12 19:22:13