-1

I've installed Apache Karaf 2.3.10 in my environment to deploy OSGi bundles. I need to add SCR feature to karaf. I tried by following the steps in this link. It won't show the installed components as similar to osgi:install command. Can anybody tell me any references or steps to add the SCR feature?

Shriram
  • 4,343
  • 8
  • 37
  • 64
  • Have you added scr features using : features:addurl mvn:org.apache.karaf.scr/org.apache.karaf.scr.feature/2.2.9/xml/features and install the scr feature like : features:install scr – Ankush soni Sep 30 '15 at 14:07
  • please tell me for 2.3.10. i hope its for 2.2.9 – Shriram Sep 30 '15 at 14:21
  • even i tired that one too. no use – Shriram Sep 30 '15 at 14:21
  • After doing features:list | grep scr what you have seen? If the scr features added then do install -s mvn:org.apache.karaf.scr/org.apache.karaf.scr.examples.service/2.2.9 – Ankush soni Sep 30 '15 at 14:30
  • Please tell me for 2.3.10 not for 2.2.9. I tried by changing the version in the above url. It didn't work! – Shriram Sep 30 '15 at 16:28

1 Answers1

1

You can install it with features command as follows:

karaf@root> features:install scr

I have just tested with 2.3.10 and it works fine. No need to add extra repositories to features repos

Jorge Martinez
  • 1,221
  • 8
  • 16