Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-799

update-versions fails when the project artifact is used with a version other than the current snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.3.2
    • None
    • update-versions
    • None
    • maven 2.2.1, maven 3.0.3

    Description

      If a maven project uses its own artifact eg. as a dependency of a plugin with a version other than the current snapshot then release:update-versions will fail with an error like this:

      The artifact (com.example:test) requires a different version (3.1.50) than what is found (3.1.49) for the expression (lastReleasedProjectVersion) in the project (com.example:test)

      Basically, the latest release of the same artifact is used for some sort of regression testing and it seems that the update-versions, after moving to the next release version from snapshot, notices that there is a discrepancy between the new release version and the version used as a plugin dependency.

      This error popped up when I started to use release plugin 2.2.2 and as a result of MRELEASE-412 the properties used in the version tag are also updated.

      I think the update-versions should remember which artifacts have been updated from snapshot to the new release version, and then check those only.

      Attachments

        1. MRELEASE-799.zip
          17 kB
          Thomas Mortagne

        Activity

          People

            Unassigned Unassigned
            pmiklos Péter Miklós
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: