English 中文(简体)
• 如何与Tycho建立Felix兼容的OSGi bundles?
原标题:How to build Felix compatible OSGi bundles with Tycho?

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等东西?

感谢弗兰克

最佳回答

If you specify the Bundle-RequiredExecutionEnvironment header with a JDK that provides this package, tycho should be able to resolve the package.

页: 1

如有必要,请见

问题回答

暂无回答




相关问题
OSGi - How mature is this technology?

I have a requirement where I need to share some web resources (jsp, html, js, images, css etc.) across different Spring based Struts 2 applications. And seems like OSGi can be used to achieve this? ...

OSGi unit testing without step that packages bundles

I have checked a few testing solution for OSGI including PAX and had a quick look at the abstract TestCase within Spring DM but they both appear to require one to jar up and bundle associated bundles. ...

Is there a way to secure access to bundles in OSGi?

I have an application consisting of several OSGi bundles. I would like to enforce that some of them only provide other bundles access to their services if a valid token (e. g. a license key) has been ...

• 如何限制方案资源+JV/OSGi的权利?

我想建立一个网站,让人们能够解决方案拟定任务,并最终上载解决办法(无论用哪一种证书-语言),以便核实并与其他人分享。

When to use ServiceTracker vs ServiceReference

I am just starting with OSGi programming and have come across two ways to listener for services being activated. The first way, from an EclipseRCP book, uses ServiceReference: String filter="(...

osgi-like framework without the import/export restrictions?

I like OSGi, but the import/export restrictions and the lack of context class loader creates havoc when trying to use 3rd party libraries (e.g., some libraries try to find file.xml in META-INF, ...

热门标签