BND is a Java tool for automated building bundles for an OSGi environment.
Questions tagged [bnd]
196 questions
1
vote
0 answers
How to convert Elasticsearch Java API Client into OSGI bundle?
I want to convert Elasticsearch Java API Client into an OSGI bundle as it is not readily available anywhere. I tried the following command to create one on my own but it not work. I also tried maven bundle plugins but it resulted in the same error.…

kurious
- 59
- 8
1
vote
1 answer
Converting a transitive dependency into a compileOnly dependency
I am trying to use OSGI to allow me to use two different versions of a transitive dependency. The plan is that one version (the newer version) will be hidden away inside an OSGI bundle, the other will be on the runtime classpath as normal.
I have…

Robin Green
- 32,079
- 16
- 104
- 187
1
vote
1 answer
Aspectj, how to use ajc in a modular way
I am trying to use the Aspectj compiler ajc in a modular (OSGi setting). The standard way ajc seems to be used is to take aspects & java code and turn it into one a JAR with all classes and resources in the -inpath, -aspectpath, and -sourceroots.
I…

Peter Kriens
- 15,196
- 1
- 37
- 55
1
vote
0 answers
How to resolve org.slf4j with bndtools
I'm currently trying to use bndtools for a simple OSGi test project for evaluation of bnd/bndtools. Now I'm struggling to let bndtools automatically resolve the run requirements for my project. I got the following error:
Resolution failed.…

jsc57x
- 71
- 6
1
vote
2 answers
Injecting singleton OSGi Declarative Service in Eclipse RCP
I'm trying to define a singleton OSGi service that would be used (=shared) by other plugins in my Eclipse RCP application but every plugin has its own version (from local classloader) and only the one version with the highest ranking gets…

Jan Straka
- 13
- 2
1
vote
2 answers
Why don't repositories in the bnd workspace model support transitive dependencies?
According to the Introduction to the bnd workspace model the repositories define and exact set of dependencies and not support transitive dependencies because they tend to make horrible OSGi systems.
Can someone provide a more detailed explanation…

Shamann
- 88
- 5
1
vote
1 answer
Shutdown an OSGi container after some code has been executed (to create a command-line tool)
I would like to create a command-line tool that starts an OSGi framework, in order to reuse code that is relying on OSGi.
In the answer accessing command-line arguments from OSGi bundle, I got how I can read the command line…

Jmini
- 9,189
- 2
- 55
- 77
1
vote
1 answer
OSGi: can't install more than 1 Resource directly from a Repository?
Hello and thank you for reading,
I am currently having a problem with installing multiple Resources into my OSGi framework. I am using Eclipse IDE with the Bndtools plugin.
I have an online OSGi repository following the RFC 112. I have successfully…

BramCoding
- 395
- 2
- 11
1
vote
0 answers
Is it possible to have bnd provide warnings about superfluos or missing export-package entries?
To generate OSGi bundles I'm running bnd on each of my jar files with something like java -jar biz.aQute.bnd-4.2.0.jar bundle.bnd.
I have a .bnd file for each jar file and I always provide all the other jar files in the classpath.
I would like to…

Karl S.
- 345
- 1
- 9
1
vote
1 answer
OSGi bundle export versioning
I'm pretty new in osgi world, and probably missing something, and i'm having troubles exposing different versions of the same sevice for liferay.
Here is what i am trying to do (and sorry for my english):
I wrote a service, wrapped it in a bundle…

Trio
- 78
- 7
1
vote
1 answer
Unresolved requirement: Import-Package: org.apache.commons.codec.language in bndtools/osgi
I'm currently working at a project where I need to transfer PDE style plugins to bnd style plugins.
I ran into the problem with external jars so I build up bundles for every jar and included them to the build path. For most of the jars this worked…

Philipp M
- 502
- 6
- 20
1
vote
3 answers
OSGi/BND: How to exclude classes from bundle generation?
I have a bundle project (Eclipse) that has the following structure:
src/main/java
Bundle source files here
src/test/java
Bundle internal test cases
When I try to make the bundle I get an error that there are some "Unsolved references". The…

Robert
- 39,162
- 17
- 99
- 152
1
vote
1 answer
Unable to access Maven Central from Eclipse build.bnd
I am building an OSGi project using Eclipse Proton with bndtools. I am having problems connecting to Maven Central or at least pulling the jar dependencies from there.
In the cnf/build.bnd, I have defined
-plugin.2.Maven: …

Jim
- 59
- 1
- 1
- 6
1
vote
0 answers
Web-ContextPath doesn't seem to be working in Liferay
I am building a simple Single Page Application with JAX-RS backend bundled into Liferay 7. I want app's static files to be served from the same bundle, so I created META-INF/resources folder and put all the files there. Next, I added…

Vasily Pankratov
- 347
- 2
- 12
1
vote
0 answers
Gradle multi-build flat independent projects using BND tools
I would like to have a multi-project build in a structure as such
common
build.gradle
settings.gradle
build
common-build.gradle
proj1
build.gradle
settings.gradle
proj2
build.gradle
settings.gradle
...
projn
…

TheUberUser
- 121
- 1
- 8