Yes, this is my own feature, which I am trying to test. I will try this flag. Thanks!
Best regards, Alex soto [email protected] > On Nov 6, 2015, at 11:16 AM, Jean-Baptiste Onofré <[email protected]> wrote: > > Hi Alex, > > the feature containing the javax-inject SMX bundle is from you ? > > You should have dependency="true" flag on it I guess. > > Regards > JB > > On 11/06/2015 05:14 PM, Alex Soto wrote: >> Hello, >> >> I have a problem with @Inject in my integration test (Karaf 4.0.2 and >> Pax-Exam 4.6.0). Dependencies are not injected. For example: >> >> @Inject >> protected BundleContext bundleContext; >> >> The problem seems to be caused by one the features being tested, which >> includes this bundle: >> >> >> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-inject/1_2</bundle> >> >> >> This feature contains bundles that also use the @Inject annotation. If >> I remove the above /<bundle>/ declaration from my features.xml, then the >> problem goes away, but then I need to have this jar deployed at runtime. >> So, which bundle should I be using that contains Inject and that works >> with Pax-Exam as well for runtime? >> >> Best regards, >> >> Alex soto >> >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
