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

updateWorkingCopyVersions false still update the version

    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

          People

            Unassigned Unassigned
            msangel msangel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: