No, installation of cfg file doesn't work like this: only bundles.
The provisioning of cfg files is only possible by installing a feature. Regards JB On 02/05/2014 04:02 PM, Charlie Mordant wrote:
Hi, I think that you must give to Karaf the entire mvn url to deploy it: install -s mvn:ch.curabill.msp.service/ca mel-route/1.0-SNAPSHOT/cfg/groups, as you do with your feature ( mvn:ch.curabill.msp.service/ca mel-route/1.0-SNAPSHOT/xml/features Regards, Charlie 2014-02-05 Laci Gaspar <[email protected] <mailto:[email protected]>>: Hi I'm having trouble deploying config files to karaf. What I have now is a bundle which I create with maven-bundle-plugin. Then I created a features.xml as follows: <feature name="camel-route" version="${pom.version}"> <configfile finalname="etc/CamelRoute.cfg" override="true">CamelRoute.cfg </configfile> </feature> And in my pom file, I added: <artifactId>build-helper-__maven-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>target/classes/features.__xml</file> <type>xml</type> <classifier>features</__classifier> </artifact> <artifact> <file>target/classes/__CamelRoute.cfg</file> <type>cfg</type> <classifier>groups</__classifier> ... I deploy my bundle with the karaf console: install -s mvn:ch.curabill.msp.service/__camel-route/1.0-SNAPSHOT But the CamelRoute.cfg doesn't get deployed. When I build my bundle I see the following in the console: [INFO] Installing D:\workspace-curax-2-0\camel-__route\target\classes\__CamelRoute.cfg to C:\Users\gas\.m2\repository\__ch\curabill\msp\service\ca mel-route\1.0-SNAPSHOT\camel-__route-1.0-SNAPSHOT-groups.cfg so the config file is in my repository. How can I deploy it into karaf? Thanks for your help Laci
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
