Eclipse OSGi bundle reqiure another bundle's fragment

前端 未结 2 1243
夕颜
夕颜 2020-12-19 14:28

This might be simple question but have confused me for sometime.

I\'m developing an OSGi bundle which rely on google guice. Google guice has one main bundle and seve

相关标签:
2条回答
  • 2020-12-19 14:39

    Use an Import-Package dependency on the fragment's exported packages.

    In fact you should use Import-Package for all your dependencies, and avoid Require-Bundle wherever possible.

    0 讨论(0)
  • 2020-12-19 14:48

    In addition to adding the required package to Import-Package, you might need to add Eclipse-ExtensibleAPI: true to the manifest to prevent unresolved dependency error in PDE.

    0 讨论(0)
提交回复
热议问题