MavenProjectVersion Data Type

This class encapsulate a simplified version of Mave version number. It has logic to parse any version string that follow the Maven standard.

Implemented Interfaces
Serializable
Properties
name data type constraints description
version string   The maven version string "as is"
major number required
minor number required
patch number required
qualifier string   The qualifier, snapshot or build number part of the version. This is what is after the first '-'. Maven distinguish between qualifier, snapshots or build-number to be able to sort versions in the correct order, but we do not need to 'sort', hence the simplification treating all 3 of these as a 'qualifier'.

Example

{
  "version" : "...",
  "major" : 12345,
  "minor" : 12345,
  "patch" : 12345,
  "qualifier" : "..."
}