Hi, To answer your second question, you can place all custom config files in the "etc" folder of your distribution project (maven artifact), the assembly-plugin will then copy those files to the etc folder of target distribution file (tar.gz or .zip).
On Sat, 3 Oct 2015 at 11:14 Achim Nierbeck <[email protected]> wrote: > Hi, > > Well, configuration is usually added to your feature, might take a look at > the PAX Web feature definition. > Same for wrapped bundles, just make sure you're using the wrapped maven > coordinate. > And since you're having a wrapped bundle in your feature make sure you > also have the wrap feature defined as feature prerequisite. > > Regards, Achim > > sent from mobile device > Am 03.10.2015 10:59 vorm. schrieb "xlogger" <[email protected]>: > >> I would like to prepare a custom distribution of karaf 4.0.1 with all the >> dependencies features (or libraries) and resources like Oracle connection >> pool and JMS connection factories pre-configured. >> >> I have read the documentation at >> >> https://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html >> and understand that karaf-assembly mvn plugin can do the job. The plugin >> can >> control feature installation through elements like >> installedFeature/startupFeature/bootFeature, but my oracle connection pool >> involve steps like below to install Oracle jdbc driver >> >> install -s wrap:mvn:com.oracle/ojdbc6/11.2.0 >> >> How could I include such step through karaf-assembly mvn plugin? >> >> In addition, how can I instruct karaf-assembly plugin to include config >> file >> like "org.ops4j.datasource-<ds_name>.cfg" in the etc folder? where should >> I >> place my cfg file in my maven project? >> >> >> It would be good if anyone can point me to more detailed documentations or >> tutorials about how to make custom karaf distribution. Thanks in advance. >> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/Karaf-4-0-1-Custom-Distribution-with-karaf-assembly-mvn-plugin-tp4042855.html >> Sent from the Karaf - User mailing list archive at Nabble.com. >> >
