This shows how Maven dependencies are used to automatically bring in dependencies of an artifact.
To deploy and run the OSGi dependency sample:
When adding an
application, add the artifact
depot-samples-osgi-main-bundle
.
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.
Click
.Save the application.
Start ServiceMix 4 and install the ServiceMix 4 agent (if you haven't already done so).
Edit the Default deployment profile and add the application to it.
Publish the Default deployoyment profile.
See how both the main and dependency bundles are deployed to ServiceMix.