Fedora: maven-gpg-plugin keep asking passphrase
When doing maven release, maven-gpg-plugin keep showing
請輸入密語: [INFO] gpg: gpg-agent 在此階段無法使用
Enter passphrase: [INFO] gpg: gpg-agent is not available in this session
I literately has to input passphrase dozens (if not hundreds) times. Indeed annoying.
This is because Bug: gpg-1 cannot locate gpg-agent >= 2.1 . But I don’t really want to wait for the package fix. Luckily,
gpg2 works, and there is a way to change what maven-gpg-plugin invokes. In other words. add following sections to your
<!-- No need to enter passphrase here, gpg-agent should be working now
Note that RHEL 7 does not suffer this problem, as in RHEL 7, gpg is actually gpg2. You can use
to verify it.