Thanks,

Yes, I've copied the pom from
http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
and added in a property <my.var>value</my.var>:

https://gist.github.com/anonymous/9184e149d222e592db19

I then created a file in the filtered directory with the line:

target=${my.var}

In target/classes I see:

target=value

but in the zip & tar file I can see the file, but it still contains:

target=${my.var}



On Mon, Jan 5, 2015 at 4:10 PM, Jean-Baptiste Onofré <[email protected]>
wrote:

> Hi Mark,
>
> Did you try the pom as in the archetype:
>
> https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob_
> plain;f=archetypes/assembly/src/main/resources/archetype-
> resources/pom.xml;hb=karaf-3.0.x
>
> Especially the <execution/> ?
>
> I just tried, and it works fine for me: my resources are included in the
> distro.
>
> Can you share your pom ?
>
> Regards
> JB
>
>
> On 01/05/2015 05:04 PM, Mark Work wrote:
>
>> Hi,
>>
>> I'm having trouble with creating a custom distribution using
>> karaf-assembly target when trying to include filtered property files.
>>
>> I can reproduce it using the latest example POM from the custom
>> distribution page with the maven-resources-plugin included.
>>
>> When I try to build with the filtered file, the version with
>> replacements makes it into target/classes, but the version in the zip
>> file is the version prior to variable substitutions.
>>
>> I have seen https://issues.apache.org/jira/browse/KARAF-2742 , but I'm
>> still seeing a problem. Is this working for anyone else?
>>
>> This is with karaf 3.0.2, building on Windows.
>>
>> Thanks,
>>
>> ---
>> Mark
>>
>>
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to