You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Cau Ta (Jira)" <ji...@apache.org> on 2020/07/29 07:01:00 UTC

[jira] [Updated] (MRELEASE-1054) [Git submodule] Wrong Change on scm submodule after release:prepare and failed on pushChange

     [ https://issues.apache.org/jira/browse/MRELEASE-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cau Ta updated MRELEASE-1054:
-----------------------------
    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_

  was:
*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.

--------

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_


> [Git submodule] Wrong Change on scm submodule after release:prepare and failed on pushChange
> --------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-1054
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1054
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: Git, prepare, scm
>    Affects Versions: 3.0.0-M1
>            Reporter: Cau Ta
>            Priority: Major
>         Attachments: Screen Shot 2020-07-29 at 13.54.41.png
>
>
> *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_



--
This message was sent by Atlassian Jira
(v8.3.4#803005)