Skip to content

Commit e25de1e

Browse files
committed
Fix GPG signature when deploying
When using gpg > 2.1, we need to add some arguments: ```xml <configuration> <keyname>${gpg.keyname}</keyname> <passphraseServerId>${gpg.keyname}</passphraseServerId> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> ``` See https://central.sonatype.org/publish/publish-maven/#gpg-signed-components Also if we end up seeing a message like: > gpg: Note: database_open XYZ waiting for lock (held by XXXX) We need to manually run: ```sh rm ~/.gnupg/public-keys.d/pubring.db.lock ```
1 parent e5c9dbd commit e25de1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@
336336
<groupId>org.apache.maven.plugins</groupId>
337337
<artifactId>maven-gpg-plugin</artifactId>
338338
<version>3.2.7</version>
339+
<configuration>
340+
<gpgArguments>
341+
<arg>--pinentry-mode</arg>
342+
<arg>loopback</arg>
343+
</gpgArguments>
344+
</configuration>
339345
<executions>
340346
<execution>
341347
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)