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

[release] unexpected return code for "Deploy to Maven Central" step #3333

Open
SylvainJuge opened this issue Sep 26, 2023 · 2 comments
Open
Labels
agent-java Team:Automation Label for the Observability productivity team

Comments

@SylvainJuge
Copy link
Member

SylvainJuge commented Sep 26, 2023

On buildkite, we get the following error message: Error: The command exited with status 1, however the artifacts are properly published by the release process in the Deploy to Maven Central (Buildkite) step.

There was at least two occurences of this in the recent releases:

In the buildkite logs, we can see the following error:

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project apm-opentracing: Remote staging failed: A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found

We are already using the latest version of this plugin 1.6.13, which is about a year old as I am writing this.
https://search.maven.org/artifact/org.sonatype.plugins/nexus-staging-maven-plugin

When this error happens, we can have two possible results (both cases already happened)

  • the release artifact will still be published despite the error, the release workflow will successfully execute.
  • the release artifact won't be published, the release workflow will fail as the artifact is not published and timeout is reached.
@SylvainJuge SylvainJuge added the Team:Automation Label for the Observability productivity team label Sep 26, 2023
@oleg-nenashev
Copy link

You are not the only ones

@rsoika
Copy link

rsoika commented Feb 12, 2024

To me it looks like an issue with the JDK. If I run java version 17 I got the error above. When I switch to JDK 11 it looks like the issue dose not appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java Team:Automation Label for the Observability productivity team
Projects
None yet
Development

No branches or pull requests

3 participants