Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4105

Allow access to components of a parsed version through properties.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      There are some cases where I would like more fine grained access to the project version number. It would be convenient if I could access individual parts of a version string using properties. For example, a project with version "2.0.1-beta-1" I would like to be able to use the following properties or something similar:
      ${project.version} = 2.0.1-beta-1
      ${project.version.major} = 2
      ${project.version.minor} = 0
      ${project.version.incremental} = 1
      ${project.version.qualifier} = beta
      ${project.version.buildNumber} = 1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pgier Paul Gier
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: