My personal views, thoughts and opinions.

Monday, April 04, 2011

OSGi Bundle Dependency Analysis

To find all the bundles needed by your imports you can follow these simple steps:

Step 1: Open the MANIFEST-MF of your bundle

Step 2: Go to the Dependencies tab

Step 3: Add the packages you need (if you do not already have them)

Step 4: Save the changes

Step 5: Go to Dependency Analysis and chose the hierarchy view

Step 6: Browse the hierarchical list of all dependencies

Step 7: To remove the duplicates use the Flat Layout


Please have in mind that this approach will work only for bundles that are in your Eclipse distribution or in your currently active target platform.
Post a Comment

Google+ Followers