You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Daniel McGreal <d....@gmail.com> on 2016/10/05 12:22:07 UTC
Karaf feature generation and customisation of wrap deployer
Hi all Karafians,
I want to customise the import of a bundle’s wrap deployer parameters.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="tst-feature">
<feature name="tst-feature" >
<bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.0.0-beta1?Import-Package=org.elasticsearch.transport,*</bundle>
</feature>
</features>
Unfortunately, the resulting features file has the bundle duplicated, one with the extra ?Import arguments and another without.
Is there a way? Perhaps a way of excluding the normal one via the feature file (I still want the dependencies of the elastic search to be included, so I can’t exclude it at the POM level)?
Best, Dan.
Re: Karaf feature generation and customisation of wrap deployer
Posted by Daniel McGreal <d....@gmail.com>.
Hah. I just that second realised my misreading of the documentation… Was really hoping I could get back to the list before someone noticed :P
Thanks for your quick response Guillaume!
> On 5 Oct 2016, at 13:25, Guillaume Nodet <gn...@apache.org> wrote:
>
> You should use '$', not '?'.
> Here's an example:
>
> <bundle start-level="30" dependency="true">wrap:mvn:javax.portlet/portlet-api/2.0$Export-Package=javax.portlet.*;version=2.0</bundle>
>
> 2016-10-05 14:22 GMT+02:00 Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>>:
> Hi all Karafians,
>
> I want to customise the import of a bundle’s wrap deployer parameters.
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0 <http://karaf.apache.org/xmlns/features/v1.3.0>" name="tst-feature">
> <feature name="tst-feature" >
> <bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.0.0-beta1?Import-Package=org.elasticsearch.transport,*</bundle>
> </feature>
> </features>
>
>
> Unfortunately, the resulting features file has the bundle duplicated, one with the extra ?Import arguments and another without.
>
> Is there a way? Perhaps a way of excluding the normal one via the feature file (I still want the dependencies of the elastic search to be included, so I can’t exclude it at the POM level)?
>
> Best, Dan.
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Red Hat, Open Source Integration
>
> Email: gnodet@redhat.com <ma...@redhat.com>
> Web: http://fusesource.com <http://fusesource.com/>
> Blog: http://gnodet.blogspot.com/ <http://gnodet.blogspot.com/>
>
Re: Karaf feature generation and customisation of wrap deployer
Posted by Daniel McGreal <d....@gmail.com>.
Aha, and yet the duplicated one remains.
<bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.0.0-beta1$Import-Package=org.elasticsearch.transport,*</bundle>
...
<bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.0.0-beta1</bundle>
> On 5 Oct 2016, at 13:25, Guillaume Nodet <gn...@apache.org> wrote:
>
> You should use '$', not '?'.
> Here's an example:
>
> <bundle start-level="30" dependency="true">wrap:mvn:javax.portlet/portlet-api/2.0$Export-Package=javax.portlet.*;version=2.0</bundle>
>
> 2016-10-05 14:22 GMT+02:00 Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>>:
> Hi all Karafians,
>
> I want to customise the import of a bundle’s wrap deployer parameters.
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0 <http://karaf.apache.org/xmlns/features/v1.3.0>" name="tst-feature">
> <feature name="tst-feature" >
> <bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.0.0-beta1?Import-Package=org.elasticsearch.transport,*</bundle>
> </feature>
> </features>
>
>
> Unfortunately, the resulting features file has the bundle duplicated, one with the extra ?Import arguments and another without.
>
> Is there a way? Perhaps a way of excluding the normal one via the feature file (I still want the dependencies of the elastic search to be included, so I can’t exclude it at the POM level)?
>
> Best, Dan.
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Red Hat, Open Source Integration
>
> Email: gnodet@redhat.com <ma...@redhat.com>
> Web: http://fusesource.com <http://fusesource.com/>
> Blog: http://gnodet.blogspot.com/ <http://gnodet.blogspot.com/>
>
Re: Karaf feature generation and customisation of wrap deployer
Posted by Guillaume Nodet <gn...@apache.org>.
You should use '$', not '?'.
Here's an example:
<bundle start-level="30" dependency="true">wrap
:mvn:javax.portlet/portlet-api/2.0$Export-Package=javax.portlet.*;version=2.0</bundle>
2016-10-05 14:22 GMT+02:00 Daniel McGreal <d....@gmail.com>:
> Hi all Karafians,
>
> I want to customise the import of a bundle’s wrap deployer parameters.
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name=
> "tst-feature">
> <feature name="tst-feature" >
> <bundle>wrap:mvn:org.elasticsearch/elasticsearch/5.
> 0.0-beta1?Import-Package=org.elasticsearch.transport,*</bundle>
> </feature>
> </features>
>
>
> Unfortunately, the resulting features file has the bundle duplicated, one
> with the extra ?Import arguments and another without.
>
> Is there a way? Perhaps a way of excluding the normal one via the feature
> file (I still want the dependencies of the elastic search to be included,
> so I can’t exclude it at the POM level)?
>
> Best, Dan.
>
--
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/