title: "gpg: signing failed: Inappropriate ioctl for device" on MacOS with Maven
body: <p>I have installed GPG via Homebrew with <code>brew install gpg</code>.
  It is installed in version <code>2.2.17</code>.</p>
  
  <p>In my Maven POM I have this snippet:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.6&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;sign-artifacts&lt;/id&gt;
              &lt;phase&gt;verify&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;sign&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>However when running <code>mvn clean verify</code> I get this error:</p>
  
  <pre><code>gpg: Beglaubigung fehlgeschlagen: Inappropriate ioctl for device
  gpg: signing failed: Inappropriate ioctl for device
  </code></pre>
  
  <p>How can I fix this error?</p>