devonfw / maven-parent

Parent POM used for maven projects in devonfw
Apache License 2.0
0 stars 4 forks source link

gpg: cannot open 'no tty' #16

Closed hohwille closed 1 year ago

hohwille commented 2 years ago

PR #15 breaks the interactive build:

[INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ maven-parent ---
gpg: cannot open 'no tty': No such file or directory
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.955 s
[INFO] Finished at: 2022-09-29T12:08:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project maven-parent: Exit code: 2 -> [Help 1]

IMHO for github workflow this workaround is fine but should then be done in a profile. So maybe the easiest solution is that I revert this change and we solve this in a profile with the same ID deploy in the settings.xml.

hohwille commented 2 years ago

OK, so I fixed this by using a variable with the default value ask. Now, for automated build with this Inappropriate ioctl for device error simply add this to your maven build in github workflow:

-Dgpg.pin.entry.mode=loopback

This way we do not prevent to lockout ourselves in case once an automated release is failing and we have to fallback to a manual release (e.g. via devon release) but can still reach 100% automation more easily.

hohwille commented 1 year ago

Fixed with version 11. Finally verified.