I'm pretty sure I showed how to do this along with live coding pretty recently. But in my case I was using the bnd maven plugins, but essentially the setup should be the very same thing from bnd's perspective.
As Peter already outlined the procedure is:
- install the bnd remote agent in Karaf
- generate a Karaf distro jar and keep it (bnd remote distro)
- configure bndrun to use the remote agent feature
- configure bndrun to resolve against Karaf distro
- proceed with the rest as usual (resolve, run or test as you would otherwise)
- Ray