bndtools

In bndtools, what causes a Require-Capability header for execution environment to be generated?

徘徊边缘 提交于 2020-12-30 06:52:29
问题 I have the following bnd file: Bundle-Version: 1.0.12 Bundle-Activator: a.b.Activator Private-Package: a.b -buildpath: osgi.core;version=4.3.0,\ org.apache.felix.bundlerepository;version=1.6.6,\ osgi.cmpn;version=4.3.0.201111022214 -sources: false In the generated MANIFEST.MF: Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))" I don't want this there... there's no reason I can see that it should be. So how do I avoid it? 回答1: bnd 2.3 automatically adds this. You can

In bndtools, what causes a Require-Capability header for execution environment to be generated?

帅比萌擦擦* 提交于 2020-12-30 06:52:15
问题 I have the following bnd file: Bundle-Version: 1.0.12 Bundle-Activator: a.b.Activator Private-Package: a.b -buildpath: osgi.core;version=4.3.0,\ org.apache.felix.bundlerepository;version=1.6.6,\ osgi.cmpn;version=4.3.0.201111022214 -sources: false In the generated MANIFEST.MF: Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))" I don't want this there... there's no reason I can see that it should be. So how do I avoid it? 回答1: bnd 2.3 automatically adds this. You can

OSGI bundle dependencies

谁说我不能喝 提交于 2020-01-03 19:43:52
问题 I have created an bundle which relies on SLF4J and as such am using Logback for the OSGI implementation. This all bundles up and installs OK but when I come to start the bundle I get the following exception: org.osgi.framework.BundleException: Unable to resolve com.felix.test [20](R 20.0): missing requirement [com.felix.test [20](R 20.0)] osgi.wiring.package; (osgi.wiring.package=groovy.lang) Unresolved requirements: [[com.felix.test [20](R 20.0)] osgi.wiring.package; (osgi.wiring.package

OSGI bundle dependencies

被刻印的时光 ゝ 提交于 2020-01-03 19:42:10
问题 I have created an bundle which relies on SLF4J and as such am using Logback for the OSGI implementation. This all bundles up and installs OK but when I come to start the bundle I get the following exception: org.osgi.framework.BundleException: Unable to resolve com.felix.test [20](R 20.0): missing requirement [com.felix.test [20](R 20.0)] osgi.wiring.package; (osgi.wiring.package=groovy.lang) Unresolved requirements: [[com.felix.test [20](R 20.0)] osgi.wiring.package; (osgi.wiring.package

Launching an Eclipse 3.x RCP Application using bndtools

五迷三道 提交于 2019-12-25 16:07:25
问题 I have spent the past few days trying to find a solution to my problem. I am trying to launch an Eclipse RCP using the 3.x compatibility layer using the bndtools launcher via a bndrun file. I am aware of the solution which involves placing bndtools.runtime.eclipse.applauncher in the list of run bundles in order to get an E4 application to start and that there are ways to migrate an E3.x application to E4. We would like to maintain programmatic control over the Rich Client Platform for the

BndTools, How to add a non-OSGi JAR?

隐身守侯 提交于 2019-12-24 00:59:22
问题 BndTools, How to add a non-OSGi JAR? I wanted to add jcraft Libraries into my osgi project. Using plain JAR breaks the whole project. Missing requirement wiring package ERROR: Bundle com.herle.iiot.application.installation [6] Error starting file:/D:/HERLE/Data/iot-sdk/FelixLauncher/bundle/com.herle.iiot.application.installation-1.5.0.jar (org.osgi.framework.BundleException: Unable to resolve com.herle.iiot.application.installation [6](R 6.0): missing requirement [com.herle.iiot.application

Unable to use Maven Central Repository with bnd to resolve dependencies

和自甴很熟 提交于 2019-12-13 00:46:50
问题 With Eclipse Oxygen.2 Release (4.7.2), I'm trying to use bndtools to make some OSGi bundles. By default (with the JPM repository) I am able to resolve dependencies fine. But I have no way of seeing what libraries are there. Because of this, I'd like to use Maven Central to handle my dependencies. I can browse the website, see what versions are there, and make choices on that information. The default build.bnd file in the cnf project has the repositories setup like # Configure Repositories

Wrap third party jar that imports from default package using bndtools

半世苍凉 提交于 2019-12-11 22:06:27
问题 I want to wrap a third party jar. Unfortunately the vendor placed one single class (a.class) with one single method into the default package. When I try to include the resource using Include-Resource: @lib/acme-8.0.jar , it results in the following error: The default package '.' is not permitted by the Import-Package syntax. This can be caused by compile errors in Eclipse because Eclipse creates valid class files regardless of compile errors. The following package(s) import from the default

Working with Maven, OSGi and Bndtools

坚强是说给别人听的谎言 提交于 2019-12-03 17:31:18
问题 Today I was asked whether it is a good idea to use Maven in our current OSGi application. We used Bndtools and its great since it makes development as easy as possible. Bndtools uses OBR to maintain other bundles and dependency resolution even during the application is running. Since Maven is widely spreading around and is so popular, mostly all try to use it in OSGi environments too. For me these are two different approaches. OSGi has a its own declaration of dependencies, the MANIFEST.MF

Working with Maven, OSGi and Bndtools

自古美人都是妖i 提交于 2019-12-03 06:14:11
Today I was asked whether it is a good idea to use Maven in our current OSGi application. We used Bndtools and its great since it makes development as easy as possible. Bndtools uses OBR to maintain other bundles and dependency resolution even during the application is running. Since Maven is widely spreading around and is so popular, mostly all try to use it in OSGi environments too. For me these are two different approaches. OSGi has a its own declaration of dependencies, the MANIFEST.MF and Maven a pom, where you can declare them. So if you use both of them, you will declare dependencies