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

[Git submodule] Wrong Change on scm submodule after release:prepare and failed on pushChange

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M1
    • next-release
    • Git, prepare, scm
    • None

    Description

      My project structure:

      parent (git scm repo parent.git)

      -- git submodule A (git scm repo a.git)

      -- git submodule B (git scm repo b.git)

      -- git submodule C (git scm repo c.git)

      my maven release plugin config on parent pom.xml:
      <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-release-plugin</artifactId>
            <version>3.0.0-M1</version>
            <configuration>
                 <!-- <preparationGoals>deploy</preparationGoals>-->
                 <tagNameFormat>v@{project.version}</tagNameFormat>
                 <autoVersionSubmodules>true</autoVersionSubmodules>
                 <commitByProject>true</commitByProject>
                 <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
                 <pushChanges>false</pushChanges>
                 </configuration>
      </plugin>
       

      The release was successful but after release:prepare the scm config of all submodule has been change.

      [Please take a look at the attachment]

      --------------------------------------------------------------

      Another bug i have been faced is:

      when enable push change (<pushChanges>true</pushChanges>)

      the release:prepare got stuck after push change at the first git submodule

      [INFO] Executing: /bin/sh -c cd repository/beowulf/beowulf-libs/constant && git push git@github.com:beowulfchain-libs/beowulf-libs.git refs/heads/master:refs/heads/master
      [INFO] Working directory: repository/beowulf/beowulf-libs/constant
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for beowulf 1.0-SNAPSHOT:
      [INFO]
      [INFO] beowulf ............................................ FAILURE [ 42.033 s]
      [INFO] constant ........................................... SKIPPED
      [INFO] core ............................................... SKIPPED
      [INFO] utils .............................................. SKIPPED
      [INFO] domain ............................................. SKIPPED
      [INFO] config ............................................. SKIPPED
      [INFO] logging ............................................ SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 42.709 s
      [INFO] Finished at: 2020-07-28T17:51:04+07:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project beowulf: Unable to commit files
      [ERROR] Provider message:
      [ERROR] The git-push command failed.
      [ERROR] Command output:
      [ERROR] Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.3' to the list of known hosts.
      [ERROR] To github.com:beowulfchain-libs/beowulf-libs.git

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cauta Cau Ta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: