You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/07/28 11:56:00 UTC

[jira] [Comment Edited] (MGPG-84) signing fails in eclipse when using gpg-agent

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

Konrad Windszus edited comment on MGPG-84 at 7/28/22 11:55 AM:
---------------------------------------------------------------

Same for me with regular terminal. It says:
{code:java}
 gpg: signing failed: No pinentry{code}
in case the private key requires a passphrase which has not yet been entered/stored in the keychain.

My workaround:
call {{echo "test" | gpg --clearsign}} on the terminal before which asks for the passphrase properly and then save into the Mac OS keychain.


was (Author: kwin):
Same for me with maven-release-plugin:perform. It says:
{code:java}
 gpg: signing failed: No pinentry{code}
in case the private key requires a passphrase which has not yet been entered/stored in the keychain.

My workaround:
call echo "test" | gpg --clearsign on the terminal before which asks for the passphrase properly and then save into the Mac OS keychain.

> signing fails in eclipse when using gpg-agent
> ---------------------------------------------
>
>                 Key: MGPG-84
>                 URL: https://issues.apache.org/jira/browse/MGPG-84
>             Project: Maven GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.1
>            Reporter: Piotr Morgwai Kotarbinski
>            Priority: Minor
>              Labels: regression
>
> after update from 1.6 to 3.0.1 signing started to fail when running maven from eclipse with the following message:
> {noformat}gpg: signing failed: No pinentry{noformat}
> When running from terminal, everything works ok.
> Furthermore, after running from terminal, it also works ok in eclipse for about 1 minute. After about 1 minute it starts to fail again with the same error.
> System info:
> Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
> openjdk 11.0.11 2021-04-20
> gpg (GnuPG) 2.2.4
> Eclipse 2021-12 and 2021-03
> ubuntu-18.04 amd64
> {noformat}
> $ echo $GPG_AGENT_INFO 
> /run/user/1000/gnupg/S.gpg-agent:0:1
> {noformat}
>  



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