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 <gno...@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.mcgr...@gmail.com 
> <mailto:d.j.mcgr...@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: gno...@redhat.com <mailto:gno...@redhat.com>
> Web: http://fusesource.com <http://fusesource.com/>
> Blog: http://gnodet.blogspot.com/ <http://gnodet.blogspot.com/>
> 

Reply via email to