Har*_*own 1 macos homebrew gnupg maven
I have installed GPG via Homebrew with brew install gpg.
It is installed in version 2.2.17.
In my Maven POM I have this snippet:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
However when running mvn clean verify I get this error:
gpg: Beglaubigung fehlgeschlagen: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
Run Code Online (Sandbox Code Playgroud)
How can I fix this error?
Dmi*_*try 18
在 macOS 上,您可能希望使用pinentry-macGUI 窗口来输入 pin 并可选择将 pin 存储在钥匙串中。
您可以通过 Homebrew 安装它:
brew install pinentry-mac
Run Code Online (Sandbox Code Playgroud)
并在您的~/.gnupg/gpg-agent.conf配置中使用以下行启用它(如果它不存在则创建它):
pinentry-program /usr/local/bin/pinentry-mac
Run Code Online (Sandbox Code Playgroud)
I have added
GPG_TTY=$(tty)
export GPG_TTY
Run Code Online (Sandbox Code Playgroud)
to my ~/.bash_profile file. Now it is working.
See also https://github.com/Homebrew/homebrew-core/issues/14737#issuecomment-309848851
| 归档时间: |
|
| 查看次数: |
356 次 |
| 最近记录: |