maven bundle plugin & obr.xml & resource filtering

View: New views
5 Messages — Rating Filter:   Alert me  

maven bundle plugin & obr.xml & resource filtering

by Henrik Niehaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I'm playing around with custom obr capabilities, which are injected by
an obr.xml in src/main/resources. Could it be, that the bundle plugin
doesn't support resource filtering for the obr.xml?

The obr.xml, which gets copied to target/classes, is filtered, but the
resulting repository.xml in my local repo still contains the variables.

By the way, is an obr.xml file the only way to specify custom obr
capabilities? I would like to add them with a parent pom to reduce
redundancy.

Greetings
Henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven bundle plugin & obr.xml & resource filtering

by clement escoffier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


On 31.10.2009, at 13:47, Henrik Niehaus wrote:

> Hi there,
>
> I'm playing around with custom obr capabilities, which are injected by
> an obr.xml in src/main/resources. Could it be, that the bundle plugin
> doesn't support resource filtering for the obr.xml?
>
> The obr.xml, which gets copied to target/classes, is filtered, but the
> resulting repository.xml in my local repo still contains the  
> variables.

Unfortunately, the OBR.xml does not (yet) support filtering. The  
plugin use directly the src/main/resources files and not the file  
copied (and updated) to target/classes/.

You can open a jira issue to propose such feature.

>
> By the way, is an obr.xml file the only way to specify custom obr
> capabilities? I would like to add them with a parent pom to reduce
> redundancy.

Right now, the obr.xml is the only way to customize the description.  
But, I agree it would be nice to inherit a parent description.


Regards,

Clement

>
> Greetings
> Henrik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven bundle plugin & obr.xml & resource filtering

by Henrik Niehaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Clement Escoffier schrieb:

> Hi,
>
>
> On 31.10.2009, at 13:47, Henrik Niehaus wrote:
>
>> Hi there,
>>
>> I'm playing around with custom obr capabilities, which are injected by
>> an obr.xml in src/main/resources. Could it be, that the bundle plugin
>> doesn't support resource filtering for the obr.xml?
>>
>> The obr.xml, which gets copied to target/classes, is filtered, but the
>> resulting repository.xml in my local repo still contains the variables.
>
> Unfortunately, the OBR.xml does not (yet) support filtering. The plugin
> use directly the src/main/resources files and not the file copied (and
> updated) to target/classes/.
>
> You can open a jira issue to propose such feature.
>
>>
>> By the way, is an obr.xml file the only way to specify custom obr
>> capabilities? I would like to add them with a parent pom to reduce
>> redundancy.
>
> Right now, the obr.xml is the only way to customize the description.
> But, I agree it would be nice to inherit a parent description.
>
>
> Regards,
>
> Clement
>
>>
>> Greetings
>> Henrik
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

Thanks Clement,

I have craeted two new tickets and am looking forward for the first
version, which includes these features :)

Regards
Henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven bundle plugin & obr.xml & resource filtering

by Henrik Niehaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Henrik Niehaus schrieb:

> Clement Escoffier schrieb:
>> Hi,
>>
>>
>> On 31.10.2009, at 13:47, Henrik Niehaus wrote:
>>
>>> Hi there,
>>>
>>> I'm playing around with custom obr capabilities, which are injected by
>>> an obr.xml in src/main/resources. Could it be, that the bundle plugin
>>> doesn't support resource filtering for the obr.xml?
>>>
>>> The obr.xml, which gets copied to target/classes, is filtered, but the
>>> resulting repository.xml in my local repo still contains the variables.
>> Unfortunately, the OBR.xml does not (yet) support filtering. The plugin
>> use directly the src/main/resources files and not the file copied (and
>> updated) to target/classes/.
>>
>> You can open a jira issue to propose such feature.
>>
>>> By the way, is an obr.xml file the only way to specify custom obr
>>> capabilities? I would like to add them with a parent pom to reduce
>>> redundancy.
>> Right now, the obr.xml is the only way to customize the description.
>> But, I agree it would be nice to inherit a parent description.
>>
>>
>> Regards,
>>
>> Clement
>>
>>> Greetings
>>> Henrik
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> Thanks Clement,
>
> I have craeted two new tickets and am looking forward for the first
> version, which includes these features :)
>
> Regards
> Henrik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

Beause of my impatience, I have created a small patch, which enables
resource filtering for the obr.xml. It looks for the obr.xml in the
outputDirectory instead of the resource directories. Maybe it's good
enough to make it to SVN.

Have a look at: https://issues.apache.org/jira/browse/FELIX-1836

Regards
Henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven bundle plugin & obr.xml & resource filtering

by Stuart McCulloch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/12/1 Henrik Niehaus <henrik.niehaus@...>

> Beause of my impatience, I have created a small patch, which enables
> resource filtering for the obr.xml. It looks for the obr.xml in the
> outputDirectory instead of the resource directories. Maybe it's good
> enough to make it to SVN.
>
> Have a look at: https://issues.apache.org/jira/browse/FELIX-1836
>

thanks for the patch (they're always welcome, as are testcases) - I'll try
to find some time this week unless Clement gets to it first...


> Regards
> Henrik
>

--
Cheers, Stuart