Yes agreed, 

 I have found that my reasons for leaving the maven-bundle-plugin were
artificial. You do not need a custom package type because you can map
the lifecycle steps yourself. You can still configure it for a bnd file
and even if it imports by default you can manually configure it to
exclude by default and set all your imports. What I was trying to get
across was that there are a lot of great options out there for how to
configure your environment and there is no "the right way". In my
opinion karaf is maven centered where as bnd is centered on eclipse and
its workspaces but they are coming together nicely. It may take some
time to find the tools you like but there are a lot of really smart
people out there that can help you get just the environment you like. 

David Daniel 

On 2015-11-25 14:20, Achim Nierbeck wrote: 

> Hi, 
> 
> just for the record with the maven-bundle-plugin you can also use the bnd 
> file, just configure the pom accordingly. 
> 
> regards, Achim 
> 
> 2015-11-25 16:51 GMT+01:00 <[email protected]>:
> 
> I think different people handle things in different ways. Most people who 
> work on karaf seem to use the maven bundle plugin with pax-exam for testing. 
> The maven-bundle-plugin uses bnd tools underneath and just moves the 
> configuration into your pom file instead of .bnd or .bndrun file. What I have 
> been moving to as a very beginner in karaf is the bnd-maven-plugin and 
> bnd-indexer-plugin. These allow for tighter integration with bnd tools but 
> are really alpha in bnd tool 3.1 You have to get the builds from bnd tools ci 
> and they don't have support for bnd tools running and packaging. I also find 
> myself taking all the features that I use from karaf and coping the 
> information in there to bnd files so I can run test and package from bnd 
> tools which is a lot of duplication of work. Bnd Tools is working on adding 
> better maven support but they are really built up around eclipse and gradle 
> at this time. I think you will have to find what works for you and what 
> features you like. 
> 
> David Daniel 
> 
> On 2015-11-25 09:41, deadbrain wrote: 
> 
> Hi all Karaf gurus,
> just a little question dealing with BndTools, I am supposed to refactor
> an existing Spring DM application into an OSGi + Blueprint application
> to be deployed inside ServiceMix (3.4 or 4). As a consequence I would
> like to use Bndtools but launching Karaf rather than the defaut Gogo
> shell would be more convenient.
> What is the best way to do that ?
> I am supposed to write or reuse an ApplicationFactory ? I found a couple
> of implementations in github (ready to use ?)
> Is there any other valuable option?
> 
> Kind regards
> Jerome

 -- 

Apache Member

Apache Karaf <http://karaf.apache.org/ [1]> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ [2]>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/ [3]> 
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS [4]> 

Software Architect / Project Manager / Scrum Master 
 

Links:
------
[1] http://karaf.apache.org/
[2] http://wiki.ops4j.org/display/paxweb/Pax+Web/
[3] http://notizblog.nierbeck.de/
[4] http://bit.ly/1ps9rkS

Reply via email to