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

Investigate possible solutions for build number diffs on deploy

    XMLWordPrintableJSON

Details

    Description

      The "snapshot freeze" is a common practice during development: simply use a timestamped snapshot as dependency version instead of "-SNAPSHOT" ending one to "freeze" given snapshot deploy.

      This works for simple cases (one dependency, or "aligned" reactor).

      But take a look at Resolver itself: it has new-old and added-gone-readded modules, and their build numbers are different.

      Problem is, that while timestamp is same (deduced from session start), the build number is determined from remote repository (deploy target) state.

      This makes "snapshot lock down" impossible on long(er) running projects, like Resolver itself is.

      Solution: added -Dmaven.buildNumber=x option that makes user possible to OVERRIDE (and hence, align) build number. WARNING: this requires caution, as number x needs to be DETERMINED first (should be max of existing build Numbers + 1).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: