This post provides you a simple osgi feature implementation.

First develop an osgi hello world example with below modules.

 

parent — client

— provider

 

Source code is available at

https://github.com/chinthakaak/osgi-feature

Retrieving your feature

  1. features:addurl mvn:com.examples/release.feature/1.0-SNAPSHOT/xml/features
  2. features:list|grep provider*Result is —- > [uninstalled] [0.0.0 ] provider-and-client hello
  3. features:install provider-and-client