You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Cristiano Gavião <cv...@gmail.com> on 2011/05/14 14:44:35 UTC

Uninstall features with inner feature ?

Hi people,

I'm using karaf 2.2.0 and I've created a feature xml by hand that has a 
inner feature on it.

It's installing and working properly. But when I try to uninstall it, 
only the main feature and its bundles are being removed. I have to 
remove the inner feature using another uninstall command.

Is this the normal behavior ?

this is my feature xml:
> <features name="jbehave-osgi-core-${project.version}" 
> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>
> <repository>mvn:org.jbehave.osgi/jbehave-osgi-karaf-features-deps/${project.version}/xml/karaf</repository>
> <feature name="jbehave-osgi-core" version="${project.version}"
>         resolver="(obr)">
>
> <feature version="${project.version}">jbehave-osgi-deps</feature>
>
> <bundle>mvn:org.jbehave.osgi/jbehave-osgi-services/${project.version}</bundle>
> <bundle>mvn:org.jbehave.osgi/jbehave-osgi-karaf-commands/${project.version}</bundle>
> </feature>
>
> </features>

thanks

Cristiano

Re: Uninstall features with inner feature ?

Posted by Cristiano Gavião <cv...@gmail.com>.
ok Andreas,

thanks for clarifying...

cheers

On 14/05/11 12:28, Andreas Pieber wrote:
>
> Yep, this behavior is planed. You often do not want to uninstall inner 
> features. Everything else would make everything much more complex.
>
> Kind regards, Andreas
>
> On May 14, 2011 2:45 PM, "Cristiano Gavião" <cvgaviao@gmail.com 
> <ma...@gmail.com>> wrote:
> > Hi people,
> >
> > I'm using karaf 2.2.0 and I've created a feature xml by hand that has a
> > inner feature on it.
> >
> > It's installing and working properly. But when I try to uninstall it,
> > only the main feature and its bundles are being removed. I have to
> > remove the inner feature using another uninstall command.
> >
> > Is this the normal behavior ?
> >
> > this is my feature xml:
> >> <features name="jbehave-osgi-core-${project.version}"
> >> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
> >>
> >> 
> <repository>mvn:org.jbehave.osgi/jbehave-osgi-karaf-features-deps/${project.version}/xml/karaf</repository>
> >> <feature name="jbehave-osgi-core" version="${project.version}"
> >> resolver="(obr)">
> >>
> >> <feature version="${project.version}">jbehave-osgi-deps</feature>
> >>
> >> 
> <bundle>mvn:org.jbehave.osgi/jbehave-osgi-services/${project.version}</bundle>
> >> 
> <bundle>mvn:org.jbehave.osgi/jbehave-osgi-karaf-commands/${project.version}</bundle>
> >> </feature>
> >>
> >> </features>
> >
> > thanks
> >
> > Cristiano


Re: Uninstall features with inner feature ?

Posted by Andreas Pieber <an...@gmail.com>.
Yep, this behavior is planed. You often do not want to uninstall inner
features. Everything else would make everything much more complex.

Kind regards, Andreas
On May 14, 2011 2:45 PM, "Cristiano Gavião" <cv...@gmail.com> wrote:
> Hi people,
>
> I'm using karaf 2.2.0 and I've created a feature xml by hand that has a
> inner feature on it.
>
> It's installing and working properly. But when I try to uninstall it,
> only the main feature and its bundles are being removed. I have to
> remove the inner feature using another uninstall command.
>
> Is this the normal behavior ?
>
> this is my feature xml:
>> <features name="jbehave-osgi-core-${project.version}"
>> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>
>>
<repository>mvn:org.jbehave.osgi/jbehave-osgi-karaf-features-deps/${project.version}/xml/karaf</repository>
>> <feature name="jbehave-osgi-core" version="${project.version}"
>> resolver="(obr)">
>>
>> <feature version="${project.version}">jbehave-osgi-deps</feature>
>>
>>
<bundle>mvn:org.jbehave.osgi/jbehave-osgi-services/${project.version}</bundle>
>>
<bundle>mvn:org.jbehave.osgi/jbehave-osgi-karaf-commands/${project.version}</bundle>
>> </feature>
>>
>> </features>
>
> thanks
>
> Cristiano