The default version package is received when Export-Version does not specify a version.

In OSGi, if I do not specify the version in the Export-Package directive inside MANIFEST.MF, which version of the exported package will receive?

  • Version equal to package version:
  • Zero version (approximately 0.0.0)?
  • Something else?

PS And here is the logic of this logic: https://mail.osgi.org/pipermail/osgi-dev/2010-August/002608.html

+6
osgi
source share
1 answer

For Export-Package, the default version is 0.0.0, and for Import-Package, the default version is [0.0.0, infinte]. See also chapters 3.5.4 and 3.5.5 of the basic OSGi specification.

+9
source share

All Articles