Declaring dependencies outside of the workspace

About this task

The bundle manifest file tracks all dependent projects, JAR files, and classes. To declare a dependency outside of the workspace, you need to add a Bundle-ClassPath entry to your bundle manifest file.

Procedure

  1. Right-click the bundle project for which you want to declare an external dependency and select Properties. The Properties window opens.
  2. From the properties list, select Deployment Assembly. The OSGi Bundle Module Assembly properties page opens.
  3. Click Add and then select the type of reference that you want to add to the bundle.
  4. Follow the instructions in the wizard.

Results

The Bundle-ClassPath entry is added to your bundle manifest file and when you deploy the bundle on the server, the external dependencies are automatically exported to the server.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tbundleclasspath.html