I’ve got the basics down for doing this conversion, but there are a couple of 
differences between the MANIFEST.MF files generated by the two tools when 
SNAPSHOT versions are used.

Bundle-Version header:
By default, given a version in a POM like "1.2.3-SNAPSHOT”:
   - the maven-bundle-plugin converts the version to “X.X.X.SNAPSHOT"
   - the bnd-maven-plugin changes the version "X.X.X.<timestamp>"
There is a new instruction in the upcoming 3.2.0 release of the 
bad-maven-plugin that will allow preserving the “.SNAPSHOT” in the 
Bundle-Version header.

I’m assuming we want to preserve the “.SNAPSHOT” in the Bundle-Version header, 
so we’ll need to wait for version 3.2.0 of the bnd-maven-plugin

Export-Package header:
 - the maven-bundle-plugin includes “.SNAPSHOT” in the version of exported 
packages - i.e. org.apache.camel;version=“2.18.0-SNAPSHOT"
 - the bnd-maven-plugin does not include “.SNAPSHOT” in the version of the 
exported packages - i.e. org.apache.camel;version=“2.18.0”
The bad-maven-plugin can be configured to do this by adding a “packageinfo” 
file for every exported package

Do we need to keep the “.SNAPSHOT” in the exported package versions?


Reply via email to