Thanks to your help, I could reproduce my issue : the bundles in my <conditional> had missing requirements. In this case, the conditional is not installed, without errors.
Fixing the missing imports have resolved my issue. On 2017-07-12 15:20 (+0200), Guillaume Nodet <gno...@apache.org> wrote: > The best way is to produce a unit test with a minimal set of features / > bundles. > You can see such a test here: > > https://github.com/apache/karaf/blob/master/features/core/src/test/java/org/apache/karaf/features/internal/region/SubsystemTest.java#L191-L210 > with the data: > > https://github.com/apache/karaf/tree/master/features/core/src/test/resources/org/apache/karaf/features/internal/region/data5 > > > > > 2017-07-12 14:47 GMT+02:00 jeremie.bre...@gmail.com < > jeremie.bre...@gmail.com>: > > > Hello, > > > > I am playing with conditionals features, but I am not able to do what I > > want. > > > > I have theses features (with Karaf 4.1.1 ): > > > > <feature name="ui" version="1.0"> > > <conditional> > > <condition>req:component.service.faultmanagement</condition> > > <bundle>mvn:MyUIBundle</bundle> > > </conditional> > > </feature> > > > > <feature name="faultmanagement" version="1.0"> > > <bundle>...</bundle> > > <capability> > > component.service.faultmanagement > > <capability> > > </feature> > > > > When I install "ui" and "faultmanagement", I am expecting "MyUIBundle" to > > be installed. However, this is not the case. > > > > What I am doing wrong ? The resolver code is a bit complicated, how can I > > debug the behavior of such features ? > > > > Regards, > > Jérémie > > > > > > > -- > ------------------------ > Guillaume Nodet >