anyone working on karaf support in bndtools?

5 views
Skip to first unread message

scott...@gmail.com

unread,
Nov 18, 2020, 7:05:23 PM11/18/20
to bndtools-dev
Howdy,

I recently asked on the karaf mailing list about using bndtools to support karaf development/testing/deployment and .  For example, it would be a big win to have karaf feature generation, and also perhaps things like bndrun templates with the karaf runtime.  There may be other things as well.

Seems like a natural to me to have bndtools support for karaf...and perhaps  vice versa as well.  Anything like this going on wrt bndtools?

Thanks,

Scott

Peter Kriens

unread,
Nov 19, 2020, 2:25:43 AM11/19/20
to bndtoo...@googlegroups.com
Its been on my wish list for a long time. However, I am not a Karaf user. So we need to have someone that has this itch ... of course I am more than willing to help. 

We have a remote agent that was more or less designed for Karaf users. It can be installed in Karaf and then you can debug in Bndtools as if you're running in the normal launcher. It also has support to provide a distro so you can develop against the exact profile in requirements and capabilities of your Karaf installation. The pieces are all there, we only need someone that has the time to put it together.

Kind regards,

Peter Kriens




--
You received this message because you are subscribed to the Google Groups "bndtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-dev/3f939fa3-6d52-44ef-84f8-ff8b0b2398aan%40googlegroups.com.

Raymond Auge

unread,
Nov 19, 2020, 9:23:46 AM11/19/20
to bndtools dev
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)

Check this simple repo: https://github.com/rotty3000/demo-live-coding (uses Karaf)

- Ray



--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)
OSGi Fellow
Reply all
Reply to author
Forward
0 new messages