Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSGI OBR repository hosting?

Tags:

java

osgi

obr

Does anyone know of any services that provide OBR for hosting my own Bundles?

Something like github - but for bundles.

(If not - did anyone ever create their own OBR server, and how hard was it?)

EDIT: I found one solution by Nexus Pro, but it seems like its too expensive for mere mortals (as price for pro is nowhere to be seen).

like image 570
Andriy Drozdyuk Avatar asked Feb 01 '11 22:02

Andriy Drozdyuk


3 Answers

SpringSource, Apache Sling, and the OSGi Alliance have repositories and ServiceMix has its own bundles but all are privately maintained with varying levels of public influence.

There's an old public repository out there that Richard Hall used to maintain. This is back before Oscar became Felix, so you'd have to contact Richard, who is very active on Felix, about this OBR's usefulness.

Setting up your own OBR isn't terribly difficult. Apache Felix offers an OBR bundle to get things started. An OBR is really just an XML index with files linked within akin to a Maven repository, so you could set up your own OBR on any host as long as you structure things right.

like image 66
Carl Avatar answered Oct 21 '22 01:10

Carl


The open source edition of Nexus now provides (experimental at the moment, but it seems to work fine) support for generating OBR repositories.

You can create a 'virtual repository' with format: 'OBR', and point this to another repository. This virtual repository will monitor the contents of the repository and generate OBR metadata.

Karaf Cave is also an OBR repository, but I haven't tried it.

like image 4
Frank Lee Avatar answered Oct 21 '22 02:10

Frank Lee


The alternative to Nexus for Maven hosting is Apache Archiva. Once tools like Felix bnd plugin build a repository.xml for your project you can put it in the standard maven repository to host the OBR metadata. The other maven repository hosting solution is Artifactory.

like image 2
whatnick Avatar answered Oct 21 '22 02:10

whatnick