gpg:无法连接到代理:传递给 IPC 的值无效
gpg: can't connect to the agent: Invalid value passed to IPC
开发环境: Mingw64 Git Bash.
我正在尝试与 maven-gpg-plugin
签约:
[INFO] --- maven-gpg-plugin:1.6:sign (sign-release-artifacts) @ systemds ---
[INFO] gpg: keybox 'F:\Repo\systemds/pubring.kbx' created
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: no default secret key: No secret key
[INFO] gpg: signing failed: No secret key
设置后GNUPGHOME
,
错误信息:
[INFO] [INFO] --- maven-gpg-plugin:1.6:sign (sign-release-artifacts) @ systemds ---
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: keydb_search failed: No agent running
[INFO] gpg: no default secret key: No agent running
[INFO] gpg: signing failed: No agent running
为 GNUPGHOME
设置环境变量解决了问题。
export GNUPGHOME=$HOME/.gnupg
注意:请勿将 ~
用作 ~/.gnupg
代表家。
解释:
插件试图在当前目录中创建密钥文件,正如我们在行
中看到的那样
[INFO] gpg: keybox 'F:\Repo\systemds/pubring.kbx' created
指出GNUPGHOME
后解决。
开发环境: Mingw64 Git Bash.
我正在尝试与 maven-gpg-plugin
签约:
[INFO] --- maven-gpg-plugin:1.6:sign (sign-release-artifacts) @ systemds ---
[INFO] gpg: keybox 'F:\Repo\systemds/pubring.kbx' created
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: no default secret key: No secret key
[INFO] gpg: signing failed: No secret key
设置后GNUPGHOME
,
错误信息:
[INFO] [INFO] --- maven-gpg-plugin:1.6:sign (sign-release-artifacts) @ systemds ---
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: can't connect to the agent: Invalid value passed to IPC
[INFO] gpg: keydb_search failed: No agent running
[INFO] gpg: no default secret key: No agent running
[INFO] gpg: signing failed: No agent running
为 GNUPGHOME
设置环境变量解决了问题。
export GNUPGHOME=$HOME/.gnupg
注意:请勿将 ~
用作 ~/.gnupg
代表家。
解释:
插件试图在当前目录中创建密钥文件,正如我们在行
中看到的那样[INFO] gpg: keybox 'F:\Repo\systemds/pubring.kbx' created
指出GNUPGHOME
后解决。