Skip to content

Commit 67a1732

Browse files
committed
build: work around gpg pin-entry issue
1 parent a8a08ac commit 67a1732

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
8989
<maven-deploy-plugin.version>3.0.0-M2</maven-deploy-plugin.version>
9090
<maven-enforcer-plugin.version>3.1.0</maven-enforcer-plugin.version>
91-
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
9291
<maven-install-plugin.version>3.0.0-M1</maven-install-plugin.version>
9392
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
9493
<maven-javadoc-plugin.version>3.4.0</maven-javadoc-plugin.version>
@@ -99,6 +98,21 @@
9998
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
10099
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
101100
<spotless-maven-plugin.version>2.4.1</spotless-maven-plugin.version>
101+
102+
<!--
103+
downgrade to 1.6 to fix gpg signing issue with pinentry:
104+
105+
gpg signing might require a pin-entry. The gpg plugin expects a pin provided through maven settings. If none is
106+
present, but required, a dialog will pop up. Starting with version 3.0.1, this will be prevented (with an error)
107+
in case the maven is running in non-interactive mode.
108+
109+
All good, however if you have a USB stick to sign, you might expect/want/require a manual pin entry, and not
110+
write down your pin in a config file. Unfortunately, the maven release plugin runs the gpg sign plugin always
111+
in non-interactive mode.
112+
113+
Downgrading to 1.6 fixes this issue, as the pin-entry is not forced to "error".
114+
-->
115+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
102116
</properties>
103117

104118
<dependencyManagement>

0 commit comments

Comments
 (0)