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

Herve Boutemy edited comment on MRELEASE-1114 at 5/19/23 6:52 AM:
------------------------------------------------------------------

FTR MRELEASE-1091 reverted

I confirm it works perfectly: thanks [~sjaranowski] , both for the fix and for 
the easy to use reproducer command that permits checking any released or 
not-released m-release-p


was (Author: hboutemy):
FTR MRELEASE-1091 reverted

> Broken interaction of maven-gpg-plugin with Gpg4win Kleopatra since 3.0.0-M6
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-1114
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1114
>             Project: Maven Release Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0-M6, 3.0.0-M7, 3.0.0
>            Reporter: Falko Modler
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 3.0.1
>
>
> Before [https://github.com/apache/maven-release/pull/125], when gpg-plugin 
> runs, it triggered the cert password prompt window of Kleopatra but now it 
> fails right away with {{{}no pinentry{}}}.
> {noformat}
> [INFO] [INFO] --- gpg:3.0.1:sign (sign-release-artifacts) @ mrelease-1114 ---
> [INFO] gpg: signing failed: No pinentry
> [INFO] gpg: signing failed: No pinentry
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time:  1.130 s
> [INFO] [INFO] Finished at: 2023-05-03T02:47:31+02:00
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-gpg-plugin:3.0.1:sign (sign-release-artifacts) 
> on project mrelease-1114: Exit code: 2 -> [Help 1]
> [INFO] [ERROR] 
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with 
> the -e switch.
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [INFO] [ERROR] 
> [INFO] [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
> [INFO] [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  3.622 s
> [INFO] Finished at: 2023-05-03T02:54:16+02:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-release-plugin:3.0.0:perform (default-cli) on 
> project mrelease-1114: Maven execution failed, exit code: 1 -> [Help 1]
> {noformat}
> See also 
> [https://github.com/apache/maven-release/pull/125#issuecomment-1160398620] 
> and the following comments.
> h2. WORKAROUND
> init the GPG agent:
> - with Maven: {{mvn gpg:sign}}
> - or more basically in pure shell: {{echo "test" | gpg --clearsign}}
> then you can run {{mvn release:perform}} again and it will be successful 
> (it's perfectly supported by maven-release-plugin to retry the perform step)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to