Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

The default specification should be composed as follows:

Wiki Markup{{<major>.<minor>.<revision>(\[ \ -<qualififer> \ ] \ | \ [ \ -<build> \ ])}}

where:

  • the qualifier section is optional (and is SNAPSHOT, alpha-1, alpha-2)
  • the build section is optional (and increments starting at 1 if specified)
  • any '0' build or revision elements can be omitted.
  • only one of build and qualifier can be given (note that the timestamped qualifier includes a build number, but this is not the same)
  • the build number is for those that repackage the original artifact (eg, as is often done with rpms)

For ordering, the following is done in order until an element is found that are not equal:

  • numerical comparison of major version
  • numerical comparison of minor version
  • if revision does not exist, add ".0" for comparison purposes
  • numerical comparison of revision
  • if qualifier does not exist, it is newer than if it does
  • case-insensitive string comparison of qualifier
    • this ensures timestamps are correctly ordered, and SNAPSHOT is newer than an equivalent timestamp
    • this also ensures that beta comes after alpha, as does rc
  • if no qualifier, and build does not exist, add "-0" for comparison purposes
  • numerical comparison of build

Note also the proposed extension from a user in an rpm environment: Extending Maven 2.0 Dependencies

...

Range

Meaning

(,1.0]

x <= 1.0

1.0

"Soft" requirement on 1.0 (just a recommendation - helps select the correct version if it matches all ranges) <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="aa380336-286f-4a5d-b67c-44e00ca0afbe"><ac:plain-text-body><![CDATA[

[1.0]

Hard requirement on 1.0 ]]></ac:plain-text-body></ac:structured-macro><ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9d3b139f-30ce-4aa6-b653-aedbb2e5ff70"><ac:plain-text-body><!

[CDATA[[1.2,1.3]

1.2 <= x <= 1.3

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b46a6b2c-059d-446d-901f-c045f6336cd0"><ac:plain-text-body><![CDATA[[1.0,2.0)

1.0 <= x < 2.0

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="50f487b2-8957-4d93-858b-6edc8f2622fc"><ac:plain-text-body><![CDATA[[1.5,)

x >= 1.5

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9d18b8a0-2cce-4256-a1cc-a211b04a69d0"><ac:plain-text-body><![CDATA[

(,1.0],[1.2,)

x <= 1.0 or x >= 1.2. Multiple sets are comma-separated

]]></ac:plain-text-body></ac:structured-macro>

(,1.1),(1.1,)

This excludes 1.1 if it is known not to work in combination with this library

...

This is inherited, and gives a full profile over your dependency set. While it will not add new dependencies itself, it will enforce the following constraints:

  • your policy on the version allowed for a dependency
  • affects both your declared dependencies and transitive dependencies
  • apply a specific scope to a dependency

Resolve Dependencies once only

...

Preventing RELEASE dependencies

Wiki MarkupGiven that an open ended version specification such as {{\[1.0,)}} will use a {{RELEASE}} version dependency if available, there is no reason to allow and resolve such a version for a dependency.

Version specifications for Parents

...