【发布时间】:2019-08-21 12:15:43
【问题描述】:
我已经通过 Homebrew 使用 brew install gpg 安装了 GPG。
它安装在版本2.2.17。
在我的 Maven POM 中,我有这个 sn-p:
<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>
但是在运行mvn clean verify 时出现此错误:
gpg: Beglaubigung fehlgeschlagen: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
我该如何解决这个错误?
【问题讨论】:
-
尝试使用
-X参数运行maven 以找到实际执行的gpg 命令行。 -
@JimmyB 不幸的是,使用
-X时没有打印任何 gpg 命令。
标签: macos maven homebrew gnupg