After rebuilding the Felix bundles yesterday with POM version
0.9.0-incubator-SNAPSHOT, some bundles are getting Bundle-Version
headers of

  0.9.0.incubator-SNAPSHOT

while others get

  0.9.0.incubator.SNAPSHOT

Per the OSGi R4 3.2.4 grammar, the period in the latter string above
is not tolerated as part of the version "qualifier" field. The
org.osgi.framework.Version constructor throws an
IllegalArgumentException ("invalid format") against such a version.

Looking more closely, it happens with these two bundles:

  org.apache.felix.shell.gui
  org.apache.felix.shell.gui.plugin

Both of those are still using the maven-osgi-plugin, so apparently the
older Maven plugin doesn't generate proper version strings, as it must
be converting every hyphen to a period.

-- 
Steven E. Harris

Reply via email to