Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven deploys failing #231

Closed
cpswan opened this issue Oct 8, 2024 · 3 comments
Closed

Maven deploys failing #231

cpswan opened this issue Oct 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cpswan
Copy link
Member

cpswan commented Oct 8, 2024

Describe the bug

For a little while now the Maven workflow has been failing:

gpg: no default secret key: No secret key
gpg: signing failed: No secret key
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.425 s
[INFO] Finished at: 2024-10-08T08:52:18Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:3.0.1:sign (sign-artifacts) on project at_client: Exit code: 2 -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error: Process completed with exit code 1.

Steps to reproduce

  1. First I merge a (Dependabot) PR
  2. Then the Maven Deploy `at_client` to Nexus OSSRH workflow runs.
  3. And then it fails, sending out an alert email.

Expected behavior

Maven Deploy completes sucessfully

Additional context

Logs from the last successful run aren't available any more

@JeremyTubongbanua
Copy link
Member

image

The GPG key expired is the reason why

@JeremyTubongbanua
Copy link
Member

I updated the secrets on my fork and got it to upload successfully by updating the secrets.

image

Here's a recent example

I submitted a docs PR pending your review @cpswan to test if the maven deployment works after merging this PR to trunk

@JeremyTubongbanua
Copy link
Member

Appears to be functional https://github.com/atsign-foundation/at_java/actions/runs/11540989736/job/32122449892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants