If you want to export packages from a JAR file in a Maven
bundle, and the Maven project was converted from an OSGi bundle, you
must modify the pom.xml file.
Procedure
To export packages from a JAR file in a Maven bundle:
- In Enterprise Explorer, expand your bundle project.
- Double-click the pom.xml file.
- Click the pom.xml tab.
- Locate the instructions section (between the <instructions>
and </instructions> tags).
- Add a classpath element (<classpath></classpath>).
- Between the classpath tags, add the relative of the JAR
file. If there are multiple JAR files, list the paths to each JAR
file separated by a comma.
- After the classpath tags, add an Export-Package element
(<Export-Package></Export-Package>).
- Between the Export-Package tags, list the JAR file that
you want to export.
Tip: You can use the character
* as a wildcard.
- Click .