OSGi Dependency

This shows how Maven dependencies are used to automatically bring in dependencies of an artifact.

To deploy and run the OSGi dependency sample:

  1. When adding an application, add the artifact depot-samples-osgi-main-bundle.

  2. See how the Depot resolves the dependency that the main bundle has on a second OSGi bundle, depot-samples-osgi-dependency-bundle, and adds it to the Selected artifacts list.

  3. Click Add artifacts.

  4. Save the application.

  5. Start ServiceMix 4 and install the ServiceMix 4 agent (if you haven't already done so).

  6. Edit the Default deployment profile and add the application to it.

  7. Publish the Default deployoyment profile.

  8. See how both the main and dependency bundles are deployed to ServiceMix.