Maven 1.x War Plugin
  1. Maven 1.x War Plugin
  2. MPWAR-40

include build.number in Implementation-Version in manifest

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      maven-1.0.2
      maven-war-plugin-1.6.1
      plugin.jelly, v1.46
    • Number of attachments :
      1

      Description

      As of the version stated in the Environment field, $

      {pom.currentVersion} is used for the both the Specification-Version and the Implementation-Version when creating the manifest for the war.

      It'd be nice if the Implementation-Version could include a build number as well, like the one maintained by the Ant buildnumber task.

      I have a patch I'll upload that sets the Implementation-Version to "${pom.currentVersion}

      , build $

      {build.number}

      ", if build.number is already set.

      To use the enhancement, just call ant:buildnumber in a preGoal of war:war.

      I can't think of another way to provide this functionality, so I decided to go ahead and patch plugin.jelly. When I started this endeavor, I thought I absolutely had to have this feature, but now that it's done, I could probably live without it. Oh well, that's the way it goes. Hence the minor priority.

      Let me know what you think.

        Activity

        Hide
        Jonathan W. Cranford added a comment -

        patch mentioned in Issue Description above

        Show
        Jonathan W. Cranford added a comment - patch mentioned in Issue Description above
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jonathan W. Cranford
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified