BND is a Java tool for automated building bundles for an OSGi environment.
Questions tagged [bnd]
196 questions
0
votes
1 answer
Why does bnd figures my bundle REQUIRES optional services (*, 0..n, ReferenceCardinality.MULTIPLE)?
My bundle defines an interface, and a component that uses this interface implementations to call them all back (if some exists...).
A good analogy is the LogService; if one (or more) exists, calls them with the message.
Here's my DS…

JSlain
- 566
- 3
- 20
0
votes
1 answer
Is it possible to use bnd with maven-bundle-plugin to produce eclipse feature?
I am using maven-bundle-plugin to generate plugins for Eclipse. Now I need to generate Eclipse feature. How can I achieve it ?
I do not want to use PDE for it.

kulatamicuda
- 1,603
- 2
- 21
- 40
0
votes
1 answer
OSGi capabilities: effective time: resolve vs active
When should a capability have an effective time "resolve" and when "active"?
When do you want capabilities to be ignored while resolving a resource? When do you want them to be…

Puce
- 37,247
- 13
- 80
- 152
0
votes
1 answer
No DS in runtime in bndtools tutorial
i follow the bndtools turtorial. On step 5, i should see 9 bundles in the runtime, including the DS bundle.
instead, i only get these bundles and the ExampleComponent does not offer the Greetings service:
Does anybody know what I did wrong here?
I…

Felix Schmidt
- 321
- 1
- 3
- 13
0
votes
1 answer
How to create Dynamic Web Project using Bndtools OSGi Project.
I Have Created a BndTools OSGi project that generates a .jar file.Now i want the BundleContext of that jar in my main project i.e. Dynamic Web Project (.war File).
Dynamic web Project doesn't contain bnd.bnd file.So i can't inject that jar's…

Kishor Sawant
- 88
- 1
- 10
0
votes
1 answer
How do I inject declarative service into my spring bean
I have a third party lib which is exposing declarative service. But I have a spring bean class.
How do I inject this declarative service into my spring bean class?

user3132188
- 11
- 2
0
votes
1 answer
Configure artifactId using variable in OSGi bundle
I am looking to have a dynamic artifactId in my POM file that builds an OSGi bundle. I am trying to deploy two instances of a bundle with a slightly different configurations in the same ServiceMix karaf container.
I am using the BND plugin to…

Yogesh Chawla
- 1,583
- 18
- 16
0
votes
1 answer
How does the Lifecycle of DS Components work?
In which order are the annotated methods called on bundle start and stop?
I use the annotations of aQute.bnd.annotation.
Is there any documentation on this?
My guess is that it is:
on bundle start:
SetA
onStartUp (@Activate)
on bundle…

Felix Schmidt
- 321
- 1
- 3
- 13
0
votes
1 answer
Bndtools on a multi module maven Project
I am currently working on migrating a multi module maven osgi project to bnd tools.
What I'm struggling with is the configuration of the build.bnd so I can build the bundles.
If I add a package to the export list i get:
Error finding source package…

wayoflife
- 1
- 1
0
votes
3 answers
Ant: get Java class name and write to properties file
I would like to automate my OSGi manifest creation with the help of the bnd tool. For this, I need to create a properties.bnd file with the following two…

evgeni
- 1,675
- 3
- 22
- 29
0
votes
3 answers
Exporting API from implementation bundle
Can someone explain to me the rationale behind BND's exporting api packages that a bundle doesn't have. It seems just wrong to me, it always (AFAICT) results in ClassNotFoundException
Especifically
bundle A contains com.foo.api.MyInterface
bundle B…

Hilikus
- 9,954
- 14
- 65
- 118
0
votes
1 answer
ClassNotFoundException for a type that is available to the OSGi runtime ( io.netty.common )
the following, seemingly trivial issue has been driving me mad for the last day and a half:
- the bundle "netty-worker-service" exports a simple interface that wraps around a type provided ( exported ) by io.netty.transport
package…

pgn
- 669
- 1
- 6
- 16
0
votes
1 answer
How can I exclude certain packages from the exports with bndwrap
The existing jar that I am trying to wrap with the ant bndwrap task has the classes from another jar included within it. By this I mean the unrolled jar, not an embedded jar.
How can I omit these packages from the export packages declaration of the…

Robin
- 24,062
- 5
- 49
- 58
0
votes
1 answer
Bnd Import-Package with duplicate versions
I am wondering can bnd 2.1.0 generate manifest where in
Import-Package: we have two packages with the same name but with different versions. Is it
possibly and is there sense in this action?
Import-Package:…

Xelian
- 16,680
- 25
- 99
- 152
0
votes
1 answer
Setting a non string compatible property
I'm using Declarative Services and facing the following problem. I want to register my component with properties like using
bc.registerService(MyClass.class.getName(), this, props);
However, with Declarative Services I have to provide a XML file…

Ewgenij Sokolovski
- 897
- 1
- 12
- 31