GeezerVison is showing github.com — Error while using maven-gpg-plugin after setting GPG data · Issue #554 · actions/setup-java
Error while using maven-gpg-plugin after setting GPG data #554Labels documentationImprovements or additions to documentationexternalUnexpected behavior was caused by external problems DescriptionDescription:
I set my GPG private key and passphrase through setup-java action, the problem is, the maven-gpg-plugin seems to fail at retrieving them from settings.xml prompting the following message: gpg: Sorry, no terminal at all requested - can't get input.
Task version:
actions/setup-java@v3
Platform:
Runner type:
Repro steps:
I am currently trying to make it work on this repo.
The GitHub Actions workflow file can be found here and the pom.xml file at the root of the repository. Reacted by Jeremy Croiset ActivityIvanZosimov commented on Nov 16, 2023 Hi, @Lycoon 👋 Thanks for the issue, we will take a look and get back to you as soon as we have updates. IvanZosimov commented on Nov 16, 2023 @Lycoon, I've checked out and tested your solution. It seems that setup-java works correctly as gpg key is imported and settings.xml is created correctly. I suspect that the problem is inside your pom.xml file or in the mvn deploy command itself. I see that you use Profile named sign and the settings inside it seems OK to me, but does maven use it? Could you, please, enable debug logging for maven and share the logs with us? Lycoon commented on Nov 16, 2023 Sure, you will find the logs with debug logging enabled just here.
Plus Maven seems to use the profile as it loads the maven-gpg-plugin which is exclusively present inside. IvanZosimov commented on Nov 17, 2023 @Lycoon, Thank you! Could you, please, try to update version of the maven-gpg-plugin to 1.6? Lycoon commented on Nov 17, 2023 Thank you so much, it works now! 🎉
Maybe adding a little disclaimer about not using maven-gpg-plugin prior to 1.6 could save precious time to the next person facing the same issue ;) IvanZosimov commented on Nov 20, 2023 @Lycoon, thanks for suggestion, I marked the issue with documentation label. As soon as we add additional information about this plugin to the action's documentation, I'll close this issue by myself. IvanZosimov commented on Dec 14, 2023 Hi, @Lycoon 👋 In this PR we added suggested changes to action's documentation. Thank you one more time 💌 !
I'm closing this issue now, If you have any additional questions feel free to reach out.
MetadataMetadatadocumentationImprovements or additions to documentationexternalUnexpected behavior was caused by external problems DevelopmentNo branches or pull requestsIssue actions
|