bndtools/bnd — pull request #680 by gamerson (2014-11-12 14:02:17+00:00)
Title: Cleanup exact versions in case they contain snapshot-ish names

In my scenario I'm trying to use some liferay portal-service 7.0.0-SNAPSHOT versions in my 2.4.0 bndtools workspace using the AetherRepository. However, bndlib is killing off getBundle() check before it gets to AetherRepository because it doesn't like 7.0.0-SNAPSHOT version, which I understand since its not very osgi friendly version.

However I searched the bndlib code and found a method in the Analyzer that will try to cleanup maven versions that look like that X.X.X-SNAPSHOT and make it more osgi friendly form, e.g. X.X.X.SNAPSHOT.

So I just called that same function from the Project.getBundle() method to help make my use-case possible and tested it in my local environment and it works for AetherRepository plugin. So I'm sending the pull along.