Hi Thomas,

You can do exactly that with bnd/bndtools. There you create a .bndrun file where you describe the framework you want to use, all the bundles you want to run and if required some configuration options. Such a .bndrun file you can then launch using bnd/bndtools, or export to a single .jar that you can deploy.

An exact description of this feature is available on the enRoute site: http://enroute.osgi.org/tutorial_base/700-deploy.html

Best regards,

Tim

On 12/23/2015 02:12 PM, Thomas Meyer wrote:
Hi,

It seems as single jar applications are currently envogue like spring-boot or 
wildfly-swarm.

I did wonder if there is an example project for OSGi applications that want to 
do the same?

So the single jar should contain a OSGi framework/runtime and all necessary 
bundles for a given application.

I tried to create something like this and came up with this:
https://github.com/thomasmey/smServer

The only problem is that the maven assembly plugin is calling the maven 
archiver plugin to create the final jar file. In this step the manifest file 
from the unpacked OSGi runtime is overwritten and so all osgi headers are 
removed...
But it's maybe possible to create an working uber jar this way.

Any ideas suggestions?!

The goal for me is to have a single jar file that I can easily deploy on an 
cloud foundry environment like IBM blue mix or something like that.

With kind regards
Thomas
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to