I m trying to build OSGi bundles for use in both Equinox and Felix. Some of my bundles use javax.* packages, for example javax.net.
联合选举方案提供一揽子方案,没有问题,它在这两个框架中运作。
费利费利克要求我进口这件材料。 放矢:
Import-Package: javax.net
It makes sense, as only java.* packages should be included implicitly. For some reason Equinox is fine either way, it seems to magically find them anyway.
My problem comes when I build with Tycho. The Tycho build fails when I add that Import-Package:
Resolution errors: Bundle com.dexels.mybundle - Missing Constraint: Import-Package: javax.net; version="0.0.0"
因此,在营养中: 没有进口包裹,Felix就失败了,Tycho失败了。
我知道这个网站,使用系统捆绑碎块开展工作的实物,但真的希望,我已经获得这一点。
是否有办法将这些包裹添加到Tycho?
我能否使用诸如org.osgi.framework.system. Packages.extra等东西?
感谢弗兰克