Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When releasing, you will probably sign. And release:prepare will execute build in batch mode. To make this work, gpg agent cache needs to be updated, see here:
https://maven.apache.org/plugins/maven-gpg-plugin/usage.html#sign-artifacts-with-gnupg
Quote: To prime gpg-agent caches, one can perform simple "sign" operation on workstation like this echo "test" | gpg --clearsign or can use gpg command gpg-preset-passphrase
IF release plugin itself runs in interactive mode (like it does on workstations when we release ASF stuff for example), it should "warm up" gpg agent.
Otherwise, first invocation will inevitably fail, developer will be unsure why.