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
).
When working with Maven, my workflow for checking updated code involves two terminals.
mvn install
from the project which will build the actual bundle. Keep track of the absolute location on your system where the target bundle is built.update 25 file:///Users/you/project/bundle/target/bundle.jar
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.