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

Release plugin should ignore SNAPSHOTS that are not specified in the POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-beta-4
    • None
    • prepare
    • None
    • XP Pro SP2

    Description

      The release plug-in has a major bug in the way it deals with SNAPSHOTS that are not specified in the artifact POM. It can fail for two reasons:

      1. If the dependencies use set notation with an unbounded high end version, i.e. [1.0,) the release plug-in considers SNAPSHOTS when it looks for these dependencies. This makes it impossible to release anything if any dependency has been built on the same system with a higher SNAPSHOT version. Rather, it should ignore SNAPSHOTS as that was not the intent of the set notation version.
      2. If building with TeamCity, the release will fail because TeamCity will generate a SNAPSHOT build of the current artifact between the release:prepare and release:perform tasks if VCS build triggering is turned on. This is because maven makes VCS commits during this process which TeamCity is triggered by.

      These bugs make the release plug-in dependent on the content of the local repo instead of the POM. Also it makes it unusable with TeamCity.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dhoffer@xrite.com David Hoffer
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: