63
edits
Changes
→Export Your OSGi Bundle
== Export Your OSGi Bundle ==
In this example, you'll export an OSGi bundle (as a JAR file) into a directory on your local file system. This bundle could then be installed and run in any OSGi-enabled container.
NOTE: Yes, OSGi bundles are just JAR files. This means they can be used in the same way as any other JAR file. However, if an OSGi bundle (JAR) is deployed onto a non-OSGi enabled container, the OSGi meta data (inside MANIFEST.MF) will simply be ignored.
First, start with the OSGi project you wish to bundle.
Check the manifest by viewing it in your editor.
[[Image:bundle-2.png|left|thumb]]<br style="clear:left;" />
[[Image:bundle-3.png|left|thumb]]<br style="clear:left;" />
Give your configuration a name, and deselect Target Platform - leaving only your project. Now click Apply followed by Run.