BND is a Java tool for automated building bundles for an OSGi environment.
Questions tagged [bnd]
196 questions
2
votes
0 answers
How to package OSGi subsystems with bndtools
I am evaluating bndtools as an alternative to the websphere OSGi tooling in eclipse, to package liberty profile features.
Liberty profile uses OSGi subsystems packed as a .esa for extensions to the runtime. It appears that it is possible to package…

ekj
- 1,082
- 2
- 11
- 22
2
votes
1 answer
Could not find main class while it does exist
I've got an issue with running the bnd launcher. The actual problem came up during build using gradle, but it also doesn't work when I call the jar directly. The Launcher class really does exist in that jar and it does have a main method. Anyone…

Marc
- 3,550
- 22
- 28
2
votes
2 answers
How to make Eclipse generate OSGi Declarative Services Bundle Component XML automatically with bnd annotations?
We do NOT want to use Bndtools at the moment due to the fact that we use Multi Modular Maven Projects.
At the moment we would like to add or modify bnd annotations and have Eclipse generate the component.xml files in an OSGI-INF folder…

Sean Blahovici
- 5,350
- 4
- 28
- 38
2
votes
1 answer
OSGi ( Felix ) extra system.bundle exports
Simple experiment -
bundle A needs some com.sun.xml.internal.bind classes to be available to it via it's class loader ( jaxb.. )
I googled my way to the theoretical solution of forcing system.bundle to export com.sun.xml.internal.bind by adding the…

pgn
- 669
- 1
- 6
- 16
2
votes
1 answer
Configure a Service .. with XML ( instead of properties )
i have a ( bnd-annotated ) component that implements a simple api and exposes itself as a service
package com.mycompany.impl;
import com.mycompany.api.IFoo;
@Component(designateFactory=FooImpl.Configuration.class)
class FooImpl implements IFoo {
…

pgn
- 669
- 1
- 6
- 16
2
votes
1 answer
BND includes exported packages of the same bundle in 'uses' directive
I'm packaging a library as an OSGi bundle using maven-bundle-plugin, which uses BND. I noticed BND generated a very long Export-Package list, mainly because it includes many packages that are exported by the library itself in the uses directive of…

Boj
- 3,923
- 3
- 22
- 39
2
votes
1 answer
How does bnd decide the version range to apply to an import package?
I have an issue where I am building a war using maven war plugin and overlaying it using bnd plugin as described in Adding OSGi metadata to existing projects without changing the packaging type. This project defines the following dependency:
…

harschware
- 13,006
- 17
- 55
- 87
2
votes
3 answers
Make The Sonar Runner Gradle Task Depend On One Of My Tasks
I am trying out the new Sonar Runner task recently released in gradle 1.5. What I would like to do is be able to make the sonar runner task dependent on another task so that I can set the Sonar properties correctly for this project (i.e.…

Gareth
- 936
- 6
- 14
2
votes
1 answer
How can I build a OSGi bundle with maven that includes non-code resources from an OSGi fragment?
I have an OSGi fragment containing non-code resources - that is effectively a jar file containing a set of resources (image files, etc) - that I have built with maven.
I would like to build another bundle with maven which depends on the fragments…

user1991839
- 1,993
- 2
- 14
- 11
2
votes
1 answer
OSGi and Virgo tools : impossible to add a maven project (using bnd maven plugin)
I'm new to OSGi, coded only a few bundles and deployed them manually.
Some friends of mine told me about Virgo and Virgo tools, which allows you to auto-deploy bundles you manage with eclipse.
I'm currently trying to set all this up. I have…

Localolhst
- 41
- 5
2
votes
2 answers
How to exclude a named package from a dependency that exists in another dependency using Maven Bundle Plugin (BND)?
I have two dependencies:
org.postgis
postgis-jdbc
1.5.2
org.postgresql
…

wulfgarpro
- 6,666
- 12
- 69
- 110
2
votes
0 answers
Embeding dependencies except type bundle
In a POM parent I'm defining all common rules to build a bundle.
In the Embed-Dependency instruction I would like to write :
*;scope=compile|runtime;artifactId=!my-api;type=!bundle
"Embed all dependencies having…

kiki
- 241
- 4
- 11
2
votes
2 answers
What is Bnd @Attribute annotation for?
When looking at annotations in aQute.bnd.annotation.component package in bndlib-1.50.0, there is one not listed at http://www.aqute.biz/Blog/20091020 or http://www.aqute.biz/Bnd/Components: @Attribute. What is it used for?

Alexey Romanov
- 167,066
- 35
- 309
- 487
1
vote
1 answer
bnd plugin for OSGI not working in Eclipse
I am using eclipse indigo release. I downloaded the bnd plugin (from http://www.aqute.biz/Bnd/Download). When i try to right-click on a bnd file and do a 'Make bundle'; I am getting this obscure error message. It says: "The chosen operation is not…

shergill
- 3,738
- 10
- 41
- 50
1
vote
1 answer
Non annotation type for activation object with descriptor
I am getting error when I deploy mvn project . Non annotation type for activation object with descriptor (Lcom/xxx/sss/ssss;)V, type xxxxx -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal…

user1130906
- 101
- 4
- 16