[ 
https://issues.apache.org/jira/browse/MRELEASE-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504281#comment-17504281
 ] 

Mirko Klemm commented on MRELEASE-1080:
---------------------------------------

Yes, just checked:
 * In Windows CMD, %errorlevel% is 0
 * In PowerShell, $LastExitCode is 0
 * In GIT Bash, $? is 1

So the error occurs only under GIT Bash

> Maven v3.8.4 exits with non-zero status from release:perform or :prepare even 
> when successful
> ---------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-1080
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1080
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 3.0.0-M5
>         Environment: Windows 10, Git for Windows Bourne Again Shell, Maven 
> 3.8.4
>            Reporter: Mirko Klemm
>            Priority: Major
>              Labels: exit, shell
>             Fix For: waiting-for-feedback
>
>
> When doing a "release:prepare" or "release:perform", the maven process always 
> exits with a shell exit status of 1, even when the goal has finished with a 
> "BUILD SUCCESS" message, where it actually should return 0.
> This doesn't seem to have been the case with 2.x versions of the plugin.
> This is an important bug since it messes up using maven and the release 
> plugin in shell scripts.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to