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]>:

> 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
>
>
>
>
>

Reply via email to