GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #554

New issue
Copy link
New issue
Copy link
Closed
Closed
Error while using maven-gpg-plugin after setting GPG data#554
Copy link
Assignees
IvanZosimov
Labels
documentationImprovements or additions to documentationexternalUnexpected behavior was caused by external problems

Description

@Lycoon
Lycoon
opened on Nov 15, 2023
Issue body actions

Description:
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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

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

Activity

  1. Lycoon
    added
    bugSomething isn't working
    needs triage
    on Nov 15, 2023
  2. IvanZosimov commented on Nov 16, 2023

    @IvanZosimov
    IvanZosimov
    on Nov 16, 2023
    Contributor
    More actions

    Hi, @Lycoon 👋 Thanks for the issue, we will take a look and get back to you as soon as we have updates.

    Reacted by Hugo Bois
  3. IvanZosimov
    removed
    needs triage
    on Nov 16, 2023
  4. IvanZosimov
    self-assigned this
    on Nov 16, 2023
  5. IvanZosimov commented on Nov 16, 2023

    @IvanZosimov
    IvanZosimov
    on Nov 16, 2023
    Contributor
    More actions

    @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?

  6. Lycoon commented on Nov 16, 2023

    @Lycoon
    Lycoon
    on Nov 16, 2023
    Author
    More actions

    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.

  7. IvanZosimov commented on Nov 17, 2023

    @IvanZosimov
    IvanZosimov
    on Nov 17, 2023
    Contributor
    More actions

    @Lycoon, Thank you! Could you, please, try to update version of the maven-gpg-plugin to 1.6?

    Reacted by Hugo Bois
  8. Lycoon commented on Nov 17, 2023

    @Lycoon
    Lycoon
    on Nov 17, 2023
    Author
    More actions

    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 ;)

    Reacted by Ivan
  9. IvanZosimov
    added
    externalUnexpected behavior was caused by external problems
    documentationImprovements or additions to documentation
    and removed
    bugSomething isn't working
    on Nov 20, 2023
  10. IvanZosimov commented on Nov 20, 2023

    @IvanZosimov
    IvanZosimov
    on Nov 20, 2023
    Contributor
    More actions

    @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.

    Reacted by Hugo Bois
  11. IvanZosimov commented on Dec 14, 2023

    @IvanZosimov
    IvanZosimov
    on Dec 14, 2023
    Contributor
    More actions

    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.

    Reacted by Hugo Bois
  12. IvanZosimov
    closed this as completedon Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @IvanZosimov
    IvanZosimov

Labels

documentationImprovements or additions to documentationexternalUnexpected behavior was caused by external problems

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.