Koldar
Koldar

Reputation: 1407

OBR server implementation

I'm playing with OSGi. For what I understand, in order to install and start a bundle you need to already have resolved its dependencies. Since manually installing its direct (and indrect) dependencies can be painful, OBR has been introduced.

I'm using Felix as OSGi framework implementation and I would like to automatically resolve dependencys of my bundles via OBR (i.e. guava library). For this very reason I'm using org.apache.felix.bundlerepository on the client.

I'm unsure about what to do on the server side. I couldn't find solid information about what to do. I'm sure Felix can be easily configured on the server in order to serve as "OBR server" but I do not know how to do it. Can you please me help me? Code would be highly appreciated. If you can't post code, could at least tell me the general steps (or link a resource) I need in order to successfully setup the repository (like bundles required on the felix framework or another software implementing such feature).

My setup right now:

Thanks for all the reply!

Upvotes: 1

Views: 322

Answers (3)

Neil Bartlett
Neil Bartlett

Reputation: 23948

The "server side" of an OBR repository simply consists of an index file which in turn contains URL links to the bundles. You can provide this without any special server software. An Apache or Nginx HTTP server would suffice, for example.

Upvotes: 1

Alexandre Cartapanis
Alexandre Cartapanis

Reputation: 1523

Karaf Cave provides an OSGI Bundle Repository.

Upvotes: 0

tobias_
tobias_

Reputation: 478

There is an OBR plugin for Sonartype Nexus 2.13, which allows you to provide an OBR-compatible repository. It can also be used to proxy an existing Maven repository.

However, before setting up your own repository, you might also want to have a look at bndtools and their approach to resolving dependencies. Bndtools also allows you to rely on existing Maven repositories that do not support OBR explicitly. There is a guide on how to work with Maven, which explains their approach.

Upvotes: 1

Related Questions