Explorar el Código

fix gpg signing issues when deploying to maven repository with github action (#3950)

Jason Song hace 3 años
padre
commit
b7acfbef95
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      pom.xml

+ 7 - 0
pom.xml

@@ -501,6 +501,13 @@
 					<groupId>org.apache.maven.plugins</groupId>
 					<artifactId>maven-gpg-plugin</artifactId>
 					<version>${maven-gpg-plugin.version}</version>
+					<configuration>
+						<!-- Prevent gpg from using pinentry programs -->
+						<gpgArguments>
+							<arg>--pinentry-mode</arg>
+							<arg>loopback</arg>
+						</gpgArguments>
+					</configuration>
 					<executions>
 						<execution>
 							<phase>verify</phase>