Yes, I always have trouble too when I need to find it.
I've at least added it to
https://ops4j1.jira.com/wiki/display/paxurl/Wrap+Protocol as an additional
example.

Guillaume

2014-02-24 18:03 GMT+01:00 Julio Carlos Barrera Juez <
[email protected]>:

> It worked Guillaume!! Thank you very much!
>
> I think this should be documented in a best place that only in a mailing
> list. I found it difficult to find.
>
> [image: i2cat]
> Julio C. Barrera Juez
> Office phone: +34 93 357 99 27
> Distributed Applications and Networks Area (DANA)
> i2CAT Foundation, Barcelona, Spain
> http://dana.i2cat.net
>
>
> On 24 February 2014 16:31, Guillaume Nodet <[email protected]> wrote:
>
>> There's a trick to be able to overwrite the manifest.
>> Here's a more complete example:
>>
>> osgi:install
>> 'wrap:mvn:org.infinispan/infinispan-core/5.2.6.Final$overwrite=merge&Import-Package=sun.misc;net.jcip.annotations;resolution:=optional,org.jgroups.*;version="[3.2,4)",org.jboss.logging;version="[3.1,4)",*&Export-Package=org.infinispan.*;-noimport:=true'
>>
>> The key is to put the overwrite=merge instruction.
>>
>>
>> 2014-02-24 16:19 GMT+01:00 Julio Carlos Barrera Juez <
>> [email protected]>:
>>
>>> Hi!
>>>
>>> I like the WRAP deployer functionality described here [1]. It works very
>>> well to OSGify non-OSGi JARs. Now I want to modify an incomplete OSGi
>>> bundle adding exported packages to the manifest. I tried to use WRAP
>>> protocol  to modify the JAR like in the previous case, but it didn't work.
>>> I wrote a Karaf feature with something like this:
>>>
>>> <bundle>wrap:mvn:my_site/my_artifact/1.2.3/$Export-Package=my_site.my_artifact.non_exported_package;version="1.2.3"</bundle>
>>>
>>>
>>> It does not work. I does not change anything in the manifest.
>>>
>>> How could I achieve my goal without manually rebundleling the JAR?
>>>
>>> [1] Karaf deployer User guide -
>>> http://karaf.apache.org/manual/latest-2.2.x/users-guide/deployer.html
>>>
>>> [image: i2cat]
>>> Julio C. Barrera Juez
>>> Office phone: +34 93 357 99 27
>>> Distributed Applications and Networks Area (DANA)
>>> i2CAT Foundation, Barcelona, Spain
>>> http://dana.i2cat.net
>>>
>>
>>
>

Reply via email to