Eclipse OSGi bundle reqiure another bundle's fragment

前端 未结 2 1258
夕颜
夕颜 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.

提交回复
热议问题