Maven and OSGi version hierarchies

Maven:
1
1.1
1.1.1-SNAPSHOT
1.1.1
OSGi:
1
1.1
1.1.1
1.1.1.qualifier
Note that in Maven terms, a snapshot version is lower than the corresponding ‘normal’ version, but in OSGi terms, it is higher (qualifier equals SNAPSHOT).

More generally: OSGi comes with four identifiers (major.minor.micro.qualifier). Maven comes with three identifiers (major.minor.incremental).

The big difference is that Maven additionally provides a qualifier, which is separated by a - instead of .. A version containing a qualifier is always considered to be older than the same version without qualifier string. This is in contrast to OSGi, where the qualifier is just another part of the full version string, just like major or minor(see above).
Share itShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *