Java and Spring component implementations can use Java classes contained in a library plug-in project in the same workspace as the component implementation. You must configure the dependency in both the component implementation and component.
Procedure
Expand the
META-INF directory of plug-in project containing the component implementation.
Double-click
MANIFEST.MF.
The manifest opens in the manifest editor.
Click the
Dependencies tab.
Follow the appropriate procedure based on the
dependency type.
Dependency Type
Procedure
Plug-in
Click
Add... to the right of the Required Plug-ins table.
Select the plug-in containing the referenced class.
Click
OK.
For example, if you reference a temperature conversion plug-in in a Spring component implementation, add
tempconversion.jv as a required plug-in:
Package
Click
Add... to the right of the Imported Packages table.
Click the referenced package.
Click
OK.
For example, if you reference a logging class in a Spring component implementation, add
org.slf4j as an imported package:
If the library plug-in will be packaged and deployed separately from the component implementation:
Open the composite.
Click the Spring component.
In the Properties view, click the
Implementation tab.
Uncheck the
Package Implementation Bundle with Application and
Compute Feature Dependencies checkboxes.
The Features Dependencies table displays.
In the Feature Dependencies table, click the feature that contains the library plug-in.