Fabric8: OSGI bundle jars for openshift and kubernetes java client

7/24/2017

I am working on integrating fabric8 for my application and need to add fabric8 kubernetes and openshift client as OSGI bundles. I can get them from following maven repositories as JAR archives.

https://mvnrepository.com/artifact/io.fabric8/openshift-client/2.5.7 https://mvnrepository.com/artifact/io.fabric8/kubernetes-client/2.5.7

And and have to convert them to OSGI bundles to add them to my application since my application is only supporting bundles. Is there a way to directly get the OSGI bundles of the above jars from maven repository as dependencies without converting them and adding them to a central repository ?

-- Chamalee De Silva
fabric8
kubernetes
maven
openshift
osgi

2 Answers

9/15/2017

The kubernetes-client ships bundles for all its artifacts. The bundles are available on maven central and you can use them just by using the bundle classifier.

For example:

http://repo1.maven.org/maven2/io/fabric8/kubernetes-client/2.6.2/kubernetes-client-2.6.2-bundle.jar
-- iocanel
Source: StackOverflow

8/14/2017

There is no direct way to get OSGI bundles, we have to build it manually. We can make it available but we have to prepare the bundle and there are plenty of tools available, For reference:

-- Suraj Narwade
Source: StackOverflow