I am searching for a way to generate a run able equinox configuration of deployed OSGI bundles.
A build server deploys our OSGI bundles via maven and tycho-plugin and placed them in the m2 directory. Now, the next step is to collect the bundles from the deployment directory and put them together in a equinox configuration and start up the container.
Collect the bundles and configure the equinox container manually is not the way I prefer so now I looking for a way to do this automatically via script.
There are solutions like ANT script?
Hoping for Help
One thing you could do is generate an config.ini
file which you can put in your configuration/
directory. The osgi.bundles
entry in there allows you to specify what bundles to install and start, e.g.:
config.ini
content:
osgi.bundles=org.eclipse.osgi.services@start, ../mydirectory/mybundle.jar@start
You may need to specify the configuration directory when launching equinox to ensure the config.ini
is picked up, e.g.
java -jar plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -configuration configuration