Menu

#64 make the maven jars OSGi bundles

open
nobody
None
5
2013-04-27
2013-04-27
No

Which greatly simplifies and robustivies usage in OSGi-based software, like Bioclipse, PathVisio, and Cytoscape.

This Maven plugin may help:

http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

It seems to me adding this snippets to the pom.xml will do the job:

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>ambit2.*</Export-Package>
</instructions>
</configuration>
</plugin>

There is also these "instructions" but I do not think you really need those:

<Private-Package>com.my.company.*</Private-Package>
<Bundle-Activator>com.my.company.Activator</Bundle-Activator>

Egon

Discussion


Log in to post a comment.