The feature-service just uninstalls the given feature and not it's dependencies. This is because one of those dependencies might be used of another feature. If you want to uninstall a "chain" of features, you have to iterate.
regards, Achim 2014-06-03 13:37 GMT+02:00 xav <[email protected]>: > Hi all, > > I use karaf 2.3.5: > > If I have the following features: > <feature name='app' version='0.1.0' > > <feature version='0.1.0'>app-1</feature> > <feature version='0.1.0'>app-2</feature> > </feature> > <feature name='app-1' version='0.1.0' > > <bundle>mvn:org.apache......</bundle> > <bundle>mvn:org.apache......</bundle> > </feature> > <feature name='app-2' version='0.1.0' > > <bundle>mvn:org.apache......</bundle> > <bundle>mvn:org.apache......</bundle> > </feature> > > to install, if I do features:install app, all dependent features are > installed. > I would like to do the same thing to uninstall, but features:uninstall app > uninstall only app, is there a workaround, to uninstall all features in the > same time. > More over, I have a bundle, which start, and stop feature (I use > FeaturesService installFeature/uninstallFeature to do that), how can I do > that without iterate on all features? > > regards > > Xav > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/features-uninstall-tp4033392.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
