I'm currently stuck when deploying a single file to my Maven Registry. I use this goal to deploy to files using the command line: https://maven.apache.org/plugins/maven-gpg-plugin/sign-and-deploy-file-mojo.html
I need to pass in 2 gpgArguments:
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
Otherwise the signing-process will fail, because I'm using Github Actions and I get an error, if they are not set (gpg: signing failed: Inappropriate ioctl for device)
In the MOJO of the plugin there is a parameter "gpgArguments" that is marked as "List".
Is it possible to pass in a List of parameters using the CLI? I tried a lot of stuff and also googled quite a bit and nothing seems to help.
My current command looks like this, but it is not interpreting the gpgArguments:
mvn gpg:sign-and-deploy-file -DpomFile=java/pom.xml -Dfile=./executable/exe -Durl=https://oss.sonatype.org/content/repositories/snapshots -Dclassifier=linux -DrepositoryId=ossrh -Dpackaging=exe -DgpgArguments=--pinentry-mode,loopback
If that's not possible, what are my alternatives? Thanks :)