Aaron Siri wrote:
I'm wondering if the maven-osgi-plugin will properly add Bundle-Classpath
entries from dependencies to the classpath when doing a compile?
Specifically, can you specify a bundle as a maven dependency and have the
plugin do the right thing with the classpath entries in the manifest from the
dependencies when compiling.
If I understand your question correctly, yes you can have the plugin
automatically embed your dependent JAR files inside of your bundle and
put them on the bundle class path. See the "Advanced Features" section
of this document:
http://cwiki.apache.org/FELIX/osgi-plugin-for-maven-2.html
The new maven bundle plugin uses a different approach where you simply
specify which packages on the compile-time class path should be include
in your bundle. Its documentation is here:
http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html
-> richard