You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/04/06 17:51:00 UTC

[jira] [Closed] (MGPG-59) GPG Plugin: "gpg: signing failed: Inappropriate ioctl for device"

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

Robert Scholte closed MGPG-59.
------------------------------
       Resolution: Fixed
         Assignee: Robert Scholte
    Fix Version/s: 1.7

Fixed in [11aca384c4005747d797dcc4857280d0d578d05f|https://gitbox.apache.org/repos/asf?p=maven-gpg-plugin.git;a=commit;h=11aca384c4005747d797dcc4857280d0d578d05f]

> GPG Plugin: "gpg: signing failed: Inappropriate ioctl for device"
> -----------------------------------------------------------------
>
>                 Key: MGPG-59
>                 URL: https://issues.apache.org/jira/browse/MGPG-59
>             Project: Maven GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Paul Hammant
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 1.7
>
>         Attachments: screenshot-1.png
>
>
> Some versions and configurations of GPG want to pop an interactive UI, which the maven-gpg-plugin cannot handle.  This appears in the log, before Maven quits without much advice:
> {{*gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect}}
> {{"gpg: signing failed: Inappropriate ioctl for device"}}
> !screenshot-1.png!
> *The remedy is for the user to do something with gpg on the command line before going into mvn-release:prepare*. Something that will allow gpg to remember (for a period of time) the passphrase entered in that interactive UI, that the maven invocation of gpg can take advantage of afterwards.
> Historically there was a gpg option '--no-use-agent', but not all gpg implementations support that today, not will going forwards as it is being removed.
> Suggestion: On command error, System.out.println the remedy above, perhaps even suggesting the command to run:
> {{gpg --use-agent --armor --detach-sign  --output $(mktemp) pom.xml}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)