Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Geschlossen
#3,333 2 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
java
Bereich
ci-cd, release

Rechercherichtung

Beginnen Sie mit dem Release-Schritt „Deploy to Maven Central (Buildkite)“ und den verknüpften Workflow-Ausführungen. Vergleichen Sie anschließend den Buildkite-Fehler damit, ob die Artefakte veröffentlicht wurden. Prüfen Sie, wie das nexus-staging-maven-plugin diese Antwort meldet, und verifizieren Sie beide Ergebnisse: Eine erfolgreiche Veröffentlichung muss zu einem erfolgreichen Workflow führen, während ein nicht veröffentlichtes Artefakt fehlschlagen muss, ohne einen inkonsistenten Status zu erzeugen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

agent-java Team:Automation

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.
Vorherrschende Sprache
Java
Sterne
593
Forks
338
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus elastic/apm-agent-java

Alle Issues in elastic/apm-agent-java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.