Hi Tim,

as Christian already stated, you have two different ways of configuring.
1) inisde the feature itself as <config> element
2) as external location, for example an URI to a resource located in a
Maven Repository. But here you can reference any valid URI pattern where a
corresponding URI handler is registered.

An example for such a use-case may also be found here [1], it's the feature
file for Pax-Web, it references an external file located in a Maven
Repository.

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-features/src/main/resources/features.xml#L91

2016-11-28 16:22 GMT+01:00 Tim Ward <t...@telensa.com>:

> On 28/11/2016 15:14, Christian Schneider wrote:
>
>> On 28.11.2016 15:14, Tim Ward wrote:
>>
>>> Thanks - replies inline:
>>>
>>> On 28/11/2016 13:50, Christian Schneider wrote:
>>>
>>>> You already found the confiFile option for features. This is the most
>>>> widely used option.
>>>>
>>>
>>> So what is the "URL" in the <configFile> element, and how do my config
>>> files get there from git?
>>>
>> The URL typically is a maven url. See https://github.com/apache/kara
>> f-decanter/blob/master/assembly/src/main/feature/feature.xml#L241
>> The default configs are deployed there using build-helper-maven-plugin:
>> https://github.com/apache/karaf-decanter/blob/master/appende
>> r/kafka/pom.xml#L50-L69
>>
>
> Sorry, I'm not sure I get that.
>
> Where, physically, do the config files go? (I've never used a "Maven URL",
> and we use bndtools not Maven for building.)
>
> I was expecting something where the config files were somewhere inside the
> bundle or feature being deployed.
>
> --
> Tim Ward
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to