Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-26

Reissue of MNG-251: maven-archiver should be able to include the snapshot version/build number

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Auto Closed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: maven-archiver
    • Labels:
      None

      Description

      From MNG-251:

      bit of a chicken and egg problem under the current arch. I want to include:

      • the build number as a separate manifest entry
      • the correct version in the manifest and META-INF/maven/pom.xml

      However, the snapshot is only determined when the artifact is transformed for install - which comes after package.

      I think this may need to be a phase before package, or part of an existing phase, or that packaging actually does the version assignment, and install/deploy just utilises it.

      More thinking required.

        Issue Links

          Activity

          John Casey created issue -
          Hide
          John Casey added a comment -

          I'm recreating this issue, to properly account for time.

          Show
          John Casey added a comment - I'm recreating this issue, to properly account for time.
          Hide
          John Casey added a comment -

          If we're to have a single snapshot build-id for artifacts and attachments, then it will have to be generated ahead of the install/deploy process, which means it's a no-brainer to also include in the artifacts themselves, somewhere under META-INF possibly.

          Show
          John Casey added a comment - If we're to have a single snapshot build-id for artifacts and attachments, then it will have to be generated ahead of the install/deploy process, which means it's a no-brainer to also include in the artifacts themselves, somewhere under META-INF possibly.
          Hide
          John Casey added a comment -

          single build number is used per artifact-set (artifact plus attachments, defined by g:a), but NOT per reactor, since individual builds of sub-projects could lead to build numbers falling out of sync.

          Show
          John Casey added a comment - single build number is used per artifact-set (artifact plus attachments, defined by g:a), but NOT per reactor, since individual builds of sub-projects could lead to build numbers falling out of sync.
          John Casey made changes -
          Field Original Value New Value
          Original Estimate 6h [ 21600 ]
          Remaining Estimate 6h [ 21600 ]
          John Casey logged work - 22/Aug/05 22:27
          • Time Spent:
            6h
             
            <No comment>
          John Casey made changes -
          Time Spent 6h [ 21600 ]
          Remaining Estimate 6h [ 21600 ] 0h [ 0 ]
          John Casey made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Hide
          Brett Porter added a comment -

          rolled back. wasn't working.

          due to low priority, we'll leave this for later.

          Show
          Brett Porter added a comment - rolled back. wasn't working. due to low priority, we'll leave this for later.
          Brett Porter made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Brett Porter made changes -
          Assignee John Casey [ jdcasey ]
          Fix Version/s 2.0-beta-2 [ 11861 ]
          Fix Version/s 2.0-beta-1 [ 11040 ]
          Brett Porter made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Fix Version/s 2.0-beta-3 [ 11991 ]
          Fix Version/s 2.0-beta-2 [ 11861 ]
          Brett Porter made changes -
          Link This issue is duplicated by MNG-1027 [ MNG-1027 ]
          Brett Porter made changes -
          Fix Version/s 2.0-beta-4 [ 11991 ]
          Fix Version/s 2.1 [ 11704 ]
          Vincent Massol made changes -
          Workflow Maven [ 38897 ] Maven New [ 47897 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1 [ 11704 ]
          Fix Version/s 2.1.x [ 13142 ]
          Brett Porter made changes -
          Fix Version/s 2.1 [ 13142 ]
          Fix Version/s Shared Components [ 13561 ]
          Brett Porter made changes -
          Key MNG-775 MSHARED-26
          Component/s maven-archiver [ 11520 ]
          Affects Version/s 2.0-alpha-3 [ 11021 ]
          Project Maven 2 [ 10500 ] Maven Shared Components [ 11761 ]
          Fix Version/s Shared Components [ 13561 ]
          Component/s maven-archiver [ 13268 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:14:21 UTC 2015 [ 1428239661755 ]
          Mark Thomas made changes -
          Workflow jira [ 12726006 ] Default workflow, editable Closed status [ 12764248 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:15:59 UTC 2015 [ 1428282959282 ]
          Mark Thomas made changes -
          Workflow jira [ 12963853 ] Default workflow, editable Closed status [ 13000191 ]
          Hide
          Michael Osipov added a comment -

          This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

          Show
          Michael Osipov added a comment - This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
          Michael Osipov made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Auto Closed [ 10000 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          3m 7s 1 John Casey 22/Aug/05 22:27
          Closed Closed Reopened Reopened
          4d 8h 17m 1 Brett Porter 27/Aug/05 06:45
          Reopened Reopened Closed Closed
          3662d 13h 59m 1 Michael Osipov 06/Sep/15 20:44

            People

            • Assignee:
              Unassigned
              Reporter:
              John Casey
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h
                6h

                  Development