BND is a Java tool for automated building bundles for an OSGi environment.
Questions tagged [bnd]
196 questions
1
vote
0 answers
Is possible to build FATJar OSGi Bundle with dependencies are not OSGify?
I have a doubt about Apache Felix Maven Bundle Plugin (BND) which I could not find a response. I am trying to build a FATJar OSGI Bundle, I mean, I want a JAR file with all dependencies (even transitive dependencies) inside it.
Can I do this which…

Sergio Rodríguez Calvo
- 1,183
- 2
- 16
- 32
1
vote
1 answer
How to write MANIFEST.MF after Gradle WAR plugin processing, still using bnd features?
I need to pack a jar (or a war, format is irrelevant, please read further) with the structure of common war (wab) archive. Meaning that I need WEB-INF/classes/lib folder filled with dep-cy jars (not flattened/shaded) and all common stuff like…

SoBeRich
- 682
- 2
- 8
- 15
1
vote
1 answer
Unable to use Maven Central Repository with bnd to resolve dependencies
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…

Zymus
- 1,673
- 1
- 18
- 38
1
vote
2 answers
Added dependency in Gradle, Liferay says "Unresolved requirement: Import-Package"
I wrote a Liferay module and deployed it successfully.
Then I added this line in build.gradle's dependencies section:
compileOnly group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
After running ./gradlew eclipse I can use the…

Nicolas Raoul
- 58,567
- 58
- 222
- 373
1
vote
1 answer
OSGI failed to start bundle 'missing requirement' using javax.ws.rs
I've been trying to make an OSGI REST bundle. I've baked it down to a contrived minimized example with a single bundle workspace with a single class that uses a few annotations. I get errors resolving the javax.ws.rs package when I run the bundle…

Mike Fogg
- 33
- 1
- 5
1
vote
1 answer
How to avoid that Gradle's osgi plugin generates export-pacakge entry for private packages and import-package entry for embedded dependencies
Dear StackOverflow users
I have a gradle project of which I want to turn the artifact into an osgi bundle. In this bundle I have:
packages that I don't want to export (may not appear in manifest's Export-Package entry)
dependencies that I want to…

Skifozoa
- 303
- 2
- 13
1
vote
1 answer
OSGi Netty / Vertx error when running from bndtools/eclipse
I am trying to run vertx under OSGi (bndtools/eclipse) and getting this error message from the underlying Netty.
I am using vertx 3.3.3
using bndtools in standalone mode (maven) so all dependencies are imported using maven and not the standard…

Gadi
- 1,539
- 22
- 37
1
vote
1 answer
Error implementing a OSGI REST: `OSGi bundle not started : missing requirement`
I'm trying to code a OSGI REST bundle with bndtools.
I added all the jars that I need in the cnf project.
Then I added them to the bundle build path.
I get the following runtime exception
OSGi bundle not started : missing requirement…

Marc
- 16,170
- 20
- 76
- 119
1
vote
1 answer
A Docker image for running enRoute OSGi framework?
I want to try and run enRoute inside a Docker container but cannot seem to find any Docker images. Can anyone suggest the location of an image?

XOXO
- 379
- 2
- 8
1
vote
0 answers
How to override bnd Require-Capability generated from DS annotation?
I have a bundle with an "optional" Component : It should be started if at leat one service of type X exist, and deactivated when the last service is unregistered.
This component is "optional": It doesn't matter if X is registered or not, or if my…

Jérémie B
- 10,611
- 1
- 26
- 43
1
vote
1 answer
Error trying to OSGi wrap (embed) jaxb-xjc with maven-bundle-plugin, bnd,
I'm trying to embed the below jar (among others) in an OSGi bundle.
com.sun.xml.bind
jaxb-xjc
2.1.13
maven-bundle-plugin with the below settings…

guydog28
- 1,307
- 1
- 11
- 15
1
vote
2 answers
bnd - Make resulted MANIFEST.MF to have one line per Bundle-ClassPath and RequireBundle entries
With OSGi tool bnd
If bnd.bnd file has
-buildpath: mod.base,\
mod.common,\
...
those lines will be as one-liner, though wrapped at 72 potion.
That make output harder to read.
Require-Bundle: mod.base,mod.common,...
How to tell bdn to make…

Paul Verest
- 60,022
- 51
- 208
- 332
1
vote
3 answers
Liferay 7 service module Unresolved requiremen
I am developing some features for Liferay 7. I know is still in beta version but I am facing some troubles with OSGi package dependencies. When I am trying to deploy service project an error occurred while deploying
Unresolved requirement:…

Miguel
- 121
- 2
- 9
1
vote
1 answer
How to add my bnd jars dependencies to my eclipse RCP application?
I have some core plugins created in my workspace that are built with BND tools in eclipse. Now I have to reference those core plugins in my eclipse RCP application which is developed with PDE tool in eclipse. But there is no visibility to the BND…

Loganathan
- 903
- 2
- 10
- 23
1
vote
2 answers
bnd gradle plugin fails after adding bundles to a repository
I'm working on an OSGi bundle using bndtools in Eclipse. I just added a new bundle (apache commons logging) to the cnf/localrepo repository, and our CI server is now failing the build:
[Gradle] - Launching build.
[workspace] $ gradle build
:mybundle…

pconley
- 704
- 1
- 7
- 13