osgibundleapache-felixpax-runner

How to update Bundle in Apache Felix OSGi Framework


I'm having troubles updating my bundle from the gogo shell. I have a gogo shell running on terminal. My bundles are active in there.

Now when I make changes to the code, what steps are necessary to forward these changes into the running OSGi framework?

I ran update <bundleId> but nothing happens. It still runs the same version which was compiled when I started the framework. Before the update command I opened another terminal and ran mvn clean install (I'm using maven-bundle-plugin along with pax-construct).


Solution

  • When working with Maven, my workflow for checking updated code involves two terminals.

    If you're free not to use Maven and Pax Runner, you can also take a look at bndtools, which is an Eclipse plugin. You can then still take the bundles that bndtools builds for you, and run them with Pax Runner.