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: Reopened Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: maven-archiver
    • Labels:
      None
    • Number of attachments :
      0

      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

          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
          Remaining Estimate 6 hours [ 21600 ]
          Original Estimate 6 hours [ 21600 ]
          John Casey logged work - 22/Aug/05 10:27 PM
          • Time Spent:
            6 hours
             
            <No comment>
          John Casey made changes -
          Remaining Estimate 6 hours [ 21600 ] 0 minutes [ 0 ]
          Time Spent 6 hours [ 21600 ]
          John Casey made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          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 -
          Fix Version/s 2.0-beta-2 [ 11861 ]
          Fix Version/s 2.0-beta-1 [ 11040 ]
          Assignee John Casey [ jdcasey ]
          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.1 [ 11704 ]
          Fix Version/s 2.0-beta-4 [ 11991 ]
          Vincent Massol made changes -
          Workflow Maven [ 38897 ] Maven New [ 47897 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1.x [ 13142 ]
          Fix Version/s 2.1 [ 11704 ]
          Brett Porter made changes -
          Fix Version/s Shared Components [ 13561 ]
          Fix Version/s 2.1 [ 13142 ]
          Brett Porter made changes -
          Key MNG-775 MSHARED-26
          Component/s maven-archiver [ 13268 ]
          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 [ 11520 ]

            People

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

              Dates

              • Created:
                Updated:

                Time Tracking

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