Uploaded image for project: 'Maven GPG Plugin'
  1. Maven GPG Plugin
  2. MGPG-59

GPG Plugin: "gpg: signing failed: Inappropriate ioctl for device"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 3.0.0 (cancelled)
    • None

    Description

      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"

      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

      Attachments

        1. screenshot-1.png
          25 kB
          Paul Hammant

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              paul Paul Hammant
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: