Version Ranges in OSGi and Maven

Version ranges have slightly different meaning in OSGi and Maven.

in OSGi: 1.0.0 is an earlier version than 1.0.0-SNAPSHOT, therewith 1.0.0-SNAPSHOT is in [1.0,2.0)

in Maven: 1.0.0 is a later version than 1.0.0-SNAPSHOT, therewith 1.0.0-SNAPSHOT is not in [1.0,2.0)

The usual practice in Maven is the following:
(1) Artifact is released in version 1.0.0
(2) Development is continued with version 1.0.1-SNAPSHOT
(3) Artifact is released with version 1.0.1

Resources

EclipseCon presentation Maven, Eclipse and OSGi working together

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s