They are both great tools and both make certain things easier.  It is not
just the static assembly that is good about bnd's compile time tools.  They
also have a testing framework to run against the bndrun file.  They have a
maven plugin to make sure I did not mess up my release versioning and have
a plugin to report on other osgi mistakes that I may have made.  I like
that the config files can be supplied in a typesafe manner although I think
this is a bundle thing and is not effected by karafs build.  On the other
hand I love karafs feature.xml files for building the repository over a
bndrun file.  Even when I am building my bndrun file I find myself going to
camels feature.xml file or jersey's feature.xml file from karaf to find my
dependencies.  I hate having to unzip a jar and look through the manifest
to find what versions and dependencies I need.  I think as long as the
tooling of the two projects are built in a compatible way each person can
take advantage of the tools from each project that they find helpful.  I
enjoy both frameworks and if I want to stand a rest service up quickly to
handle a purpose then I use karaf and the features provided.  If I have a
longer term project that I want build assurances for and have time to
dedicate then I use bnd.  I just prefer OSGI to Spring so I use both
frameworks and they are both great.

David

On Thu, Feb 14, 2019 at 8:11 AM Jean-Baptiste Onofré <[email protected]>
wrote:

> One is not opposite with the other.
>
> Karaf can also support "static" assembly. It's already possible but not
> so easy in term of tooling.
> I'm adding an example in the distribution to illustrate this, and it's
> definitely one of the purpose of "kloud initiative" (tooling).
>
> Regards
> JB
>
> On 14/02/2019 14:07, David Daniel wrote:
> > In my opinion there is more than this.  Having worked with both they
> > bring different things to the table because I love the static build time
> > checks that bnd brings and I love that it produces a single jar output.
> > From karaf I find it really easy to add features, and capabilities that
> > are well tested by the community.  With bndtools I know every library
> > and keep them updated manually in my bndrun file (I do not use
> > eclipse).  This keeps my build small and takes away problems like having
> > 3 features bring in 3 different json libraries but at the expense of
> > having to micromanage dependencies and making things more complicated
> > for the younger developers on my team that are new to OSGI.  I think
> > there is a reason open source projects like openhab and opendaylight
> > have chosen karaf for a modular system that many developers can get
> > started with.  I commented on the other thread about a static build for
> > karaf for docker.  What I would really like to see is karaf make sure
> > its features are buildable in a compatible way with the new osgi
> > features spec so I can use some of the well tested karaf features.  I
> > would also like to see a good standard choice for creating the
> > configuration of those features.  I am hoping that brings the two
> > communities closer to compatibility.
> >
> > David Daniel
> >
> > On Thu, Feb 14, 2019 at 8:03 AM Jean-Baptiste Onofré <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Thanks !
> >
> >     I'm happy to see that finally bndtools went to Maven space ;)
> >
> >     Regards
> >     JB
> >
> >     On 14/02/2019 13:59, Raymond Auge wrote:
> >     >
> >     >
> >     > On Thu, Feb 14, 2019, 07:46 Jean-Baptiste Onofré <[email protected]
> >     <mailto:[email protected]>
> >     > <mailto:[email protected] <mailto:[email protected]>> wrote:
> >     >
> >     >     Hi Ray,
> >     >
> >     >     does it mean that bundle can be created in bndtools, then
> >     upload in a
> >     >     Maven repository,
> >     >
> >     >
> >     > Yeah, whatever you can do in Maven/m2e is available.
> >     >
> >     >     and installed in Karaf ?
> >     >
> >     >
> >     > not sure if you are referring to a realtime, seamless operation
> here
> >     > during development or just install later.
> >     >
> >     > - install later; no problem at all
> >     > - seamless, realtime install during development; will need a small
> bit
> >     > of work
> >     >
> >     >     Maybe the only missing piece is that bndtools generate a
> >     features XML to
> >     >     have a complete story.
> >     >
> >     >
> >     > Yeah, if there's a Maven tooling for this , you could just use it.
> >     > However, if there's need for a specific integration, maybe in the
> next
> >     > dev cycle I could lend a hand to build this.
> >     >
> >     > Sincerely,
> >     > - Ray
> >     >
> >     >
> >     >     Regards
> >     >     JB
> >     >
> >     >     On 14/02/2019 13:44, Raymond Auge wrote:
> >     >     > Perhaps it would be better, rather than switching to the BND
> >     Workspace
> >     >     > model to simply use the BND/Bndtools Maven/m2e support. It's
> >     very good
> >     >     > now and has parity in large part with the BND Workspace. The
> >     upcoming
> >     >     > release especially should break lots of barriers.
> >     >     >
> >     >     > Just a suggestion.
> >     >     >
> >     >     > - Ray
> >     >     >
> >     >     > On Thu, Feb 14, 2019, 07:37 Jean-Baptiste Onofré
> >     <[email protected] <mailto:[email protected]>
> >     >     <mailto:[email protected] <mailto:[email protected]>>
> >     >     > <mailto:[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
> >     >     >
> >     >     >     Hi,
> >     >     >
> >     >     >     We didn't move forward a lot. I remember there was some
> >     >     discussion to
> >     >     >     have a "Karaf exporter" in bndtools and I proposed my
> >     help on
> >     >     this.
> >     >     >     I didn't move forward yet.
> >     >     >
> >     >     >     Do you already know what you have in mind (if you could
> >     >     describe the use
> >     >     >     case, that would be great) ?
> >     >     >
> >     >     >     Regards
> >     >     >     JB
> >     >     >
> >     >     >     On 14/02/2019 13:20, kamilantlgc wrote:
> >     >     >     > Dear Karaf User group,
> >     >     >     >
> >     >     >     > I have stumbled upon the exact problem - how to join
> >     Karaf and
> >     >     >     Bndtools
> >     >     >     > together "the right way" (this conversation is the
> first
> >     >     result in
> >     >     >     Google by
> >     >     >     > the way: https://www.google.com/search?q=karaf+bnd).
> >     >     >     >
> >     >     >     > I've read the topic and was happy to see that
> >     Guillaume asked to
> >     >     >     fill Jira
> >     >     >     > issue.
> >     >     >     > Then I've read with interest that JB is just "building
> >     the new
> >     >     >     SNAPSHOT to
> >     >     >     > test if the couple of issues".
> >     >     >     > And then I navigated to the issue created by dleangen
> >     >     >     > (https://issues.apache.org/jira/browse/KARAF-4160)
> >     just to see
> >     >     >     that it's
> >     >     >     > status is "Won't fix"...
> >     >     >     >
> >     >     >     > Anyway - does anybody on this group already figured it
> out
> >     >     how to
> >     >     >     join Karaf
> >     >     >     > and Bnd to play nicely together?
> >     >     >     >
> >     >     >     > Kind regards,
> >     >     >     > Kamil
> >     >     >     >
> >     >     >     >
> >     >     >     >
> >     >     >     > --
> >     >     >     > Sent from:
> >     >     http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >     >     >     >
> >     >     >
> >     >     >     --
> >     >     >     Jean-Baptiste Onofré
> >     >     >     [email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >     >     <mailto:[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>>
> >     >     >     http://blog.nanthrax.net
> >     >     >     Talend - http://www.talend.com
> >     >     >
> >     >
> >     >     --
> >     >     Jean-Baptiste Onofré
> >     >     [email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >     >     http://blog.nanthrax.net
> >     >     Talend - http://www.talend.com
> >     >
> >
> >     --
> >     Jean-Baptiste Onofré
> >     [email protected] <mailto:[email protected]>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to