[
https://issues.apache.org/jira/browse/ZOOKEEPER-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251433#comment-15251433
]
Markus Tippmann commented on ZOOKEEPER-2317:
--------------------------------------------
Hello @Patrick Hunt, don't know about the version policy for Zookeeper, but I
think the problem is gone with every release version that is not "alpha"
anymore. So if you want to avoid that "-alpha" breaks in OSGi, I fear you need
to introduce an extra "osgi.version" property, using dots instead of dashes.
Or some string replacement as you suggested, but this depends on the version if
it always works (by just replacing dashes with dots).
Here is some discussion on the topic:
http://blog.osgi.org/2011/06/negative-qualifiers.html
Additionally I'm not sure if you can use two dots for the qualifier, like:
3.5.2.alpha.SNAPSHOT
> Non-OSGi compatible version
> ---------------------------
>
> Key: ZOOKEEPER-2317
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2317
> Project: ZooKeeper
> Issue Type: Bug
> Components: build
> Affects Versions: 3.5.1
> Environment: Karaf OSGi container
> Reporter: Markus Tippmann
> Priority: Blocker
> Fix For: 3.5.2
>
>
> Bundle cannot be deployed to OSGi container.
> Manifest version is not OSGi compatible.
> Instead of using 3.5.1-alpha, manifest needs to contain 3.5.1.alpha
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)