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

updateWorkingCopyVersions false still update the version

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M7
    • None
    • prepare
    • None

    Description

      Having this in source pom.xml:

      <version>${majorversion}.3.4-SNAPSHOT</version> 

      meaning the major version is set via profile properties, but running the plugin with -DupdateWorkingCopyVersions=false still causes the version in pom.xml to be overridden with actual value (which is never "actual" as defined in profile property):

      <profile>
        <id>java8</id>
        <properties>
          <majorversion>0.8</majorversion>
        </properties>
      </profile>
      <profile>
        <id>java11</id>
        <properties>
          <majorversion>0.9</majorversion>
        </properties>
      </profile> 

      The command I run:

       mvn -DdryRun=true -DcheckModificationExcludeList="pom.xml" -DupdateWorkingCopyVersions=false  release:prepare -P java11 

      the diff:

      can this plugin not touch the version if there are set flag "updateWorkingCopyVersions" to "false"?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            msangel msangel

            Dates

              Created:
              Updated:

              Slack

                Issue deployment