Tuesday, October 22, 2013

OSGI Maven bundle for Eclipse (Part 2)

In a previous post I use maven-bundle plugin to expose maven artifact as OSGI bundle. I change a little my approach and now update the classpath manually. After using this setup for a while, I experiment one problem : How to convert maven plugin version including -SNAPSHOT to .qualifier ? After many search I found a solution using BND macro. You "just" have to put in "Bundle-Version" this macro :
<bundle-version>$(replace;${project.version};-SNAPSHOT;.qualifier)</bundle-version>

No comments:

Post a Comment