简体   繁体   中英

OSGI bundle versions (Apache Felix)

Is it legal to use bundle versions like 1.01.0? Can't find any info on how this will work. I use Apache Felix implementation of OSGI.

Felix is an OSGi framework implementation. It, therefore, must adhere to the OSGi version syntax . This syntax makes 1.01.0 identical to 1.1.0 , which is identical to 000001.001 . That is, each of the major , minor , and micro part is an integer . It is parsed, where any leading zeroes are removed, and then used.

This unlike Maven. In Maven a version is an opaque string, leading zeroes are then not ignored and all these versions are different. This is a major issue when taking maven versions in the OSGi world because the version in Maven is so ill defined.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM