Hi Laci,
The cfg file will be deployed with the feature:
feature:install
install is the short form for bundle:install, so it doesn't install the
configfile.
Regards
JB
On 02/05/2014 03:53 PM, Laci Gaspar wrote:
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