Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#3,333 2 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
ci-cd, release

Hướng nghiên cứu

Bắt đầu với bước release “Deploy to Maven Central (Buildkite)” và các lần chạy workflow được liên kết, sau đó so sánh lỗi Buildkite với việc các artifact có được publish hay không. Xem xét cách nexus-staging-maven-plugin báo cáo response này và xác minh cả hai kết quả: việc publish thành công phải tạo ra một workflow thành công, trong khi artifact không được publish phải thất bại mà không có trạng thái không nhất quán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Java
Star
593
Fork
338
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của elastic/apm-agent-java

Tất cả issue của elastic/apm-agent-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.