Package OSGI project as a single jar?

Using the Apache Felix Maven Bundle Plugin, I believe the option might accomplish what you are looking for felix.apache.org/site/apache-felix-maven....

Using the Apache Felix Maven Bundle Plugin, I believe the option might accomplish what you are looking for. felix.apache.org/site/apache-felix-maven....

Thank you for the link. But I forgot to say were using ant for all our builds. I'll look at the bundle you mentioned but I suspect since were not using Apache or maven at this time it won't be usable.

– drew Jul 15 at 14:42 The plugin calls the BND tool. You might be able to make a call-out to it using ANT. I wouldn't be able to assist on how to do that though.

– JustinKSU Jul 15 at 14:43 actually there is an ant goal for the plugin which I think is designed to allow the plugin to create an ant build. Xml file. I'll try working with it and see what happens.

– drew Jul 15 at 15:25 Why do it in such a round-about way when you can use BND directly as an Ant task? See aQute | BND: Ant Task However, I'm not sure BND can accomplish what you are looking for. – JBert Jul 150 at 11:50.

Apache Sling's maven-launchpad-plugin generates a runnable jar (and optionally a war file and a Karaf descriptor) from a list of bundles, see sling.apache.org/site/maven-launchpad-pl... The Sling installer can be used to load additional bundles from the filesystem or other sources, see sling.apache.org/site/jcr-installer-jcrj....

An alternative solution could be to run your bundles using PojoSR instead of running them in an OSGi framework. PojoSR in a nutshell implements the service layer of OSGi without the module layer. One of the side effects of that is that you can easily package your application as an executable JAR file.

When you run that JAR it also does not need to create a bundle cache on disk. For more information on PojoSR, go to: code.google.com/p/pojosr/ luminis-technologies.com/?p=358 infoq.com/news/2011/10/pojosr.

I have a large OSGI package that I want to package and release as a single jar file. I'm trying to figure out what the best approach is for packaging multiple jars into a single large jar. So far the best option I've seen appears to be one-jar project.

However, the framework we are using pulls in jar files from a 'plugins' directory and one-jar appears to want/require all jar files to be stored only in the lib directory. There may be an easy way around this, I haven't looked fully into the architecture enough to know as I'm still trying to decide what approach is best. Any suggestions for other approaches to package the multiple OSGI bundles into one jar and/or how I would go about making it work in one-jar is appreciated.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions