Hello guys,
I'm wondering, how you are packaging yours Camel projects under Karaf?
Sure, I found and used this:
https://cwiki.apache.org/confluence/display/KARAF/6.2.+Custom+distributions
Good thing, I'm able to create a tarball package.
Actually, we need to package Apache Karaf, with all dependencies, like
Camel, various libraries plus our own bundles with Camel routes, etc - and
package it as a RPM package.

The problem is mainly with our own code/artifacts. On various environment,
there might be not a internet access at the moment, and for sure there will
be no chance to download our artifacts from our Maven.
So all of these have to prepackaged.
I can use the tarball package created by Maven, following the howto
mentioned above, extract the tarball, start Karaf in our environment, with
access to Maven, let it download all things it needs (features.xml for our
project), then stop it, package it again and make a RPM from that.

But I don't like this manual part I have to do :( At least for our camel
bundles I can just place them into "deploy/" directory, but what to do with
all the libraries? There I'd like to rather utilize
Karaf's org.apache.karaf.features.cfg and list there all features I need to
install. For the libraries, I have them all specified in features.xml, so
In Karaf I can just "features:install my-project-libs" and job is done.

So, do you know some trick, how to automate it even better? How to
eliminate the manual part with starting Carafe and repackaging to get it
really ready?


-- 
S pozdravem / Best regards
Martin Stiborský

Jabber: st...@njs.netlab.cz
Twitter: http://www.twitter.com/stibi

Reply via email to