[Bug] FE build cannot resolve org.apache.doris:je:18.3.14-doris-SNAPSHOT: the snapshot is gone from repository.apache.org

Đang mở Phù hợp với người mới
#70,000 2 bình luận 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
build-system

Hướng nghiên cứu

Phiên bản cũ được ghim bởi thuộc tính je.version trong fe/pom.xml, mà fe-core dùng để resolve như một dependency. Tái hiện lỗi bằng hai lệnh mvn dependency:get trong báo cáo với một local repository trống, sau đó so sánh tọa độ lỗi 18.3.14 với bản đã phát hành 18.3.17. Hoàn thành khi một build FE sạch resolve được artifact je và các unit test của catalog đều pass; cách sửa là nâng phiên bản hoặc chuyển sang một bản build je đã phát hành.

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

Mô tả

Search before asking
  • I had searched in the issues and found no similar issues.
Version

master, branch-4.1 and branch-4.0 (all pin <je.version>18.3.14-doris-SNAPSHOT</je.version> in fe/pom.xml). Observed on a 4.1.5 checkout with an unchanged fe/pom.xml.

What's Wrong?

Since 2026-11-02 a Frontend build with an empty (or expired) local Maven repository fails to resolve org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT:

[ERROR] Failed to execute goal on project fe-core: Could not resolve dependencies for project org.apache.doris:fe-core:jar:1.2-SNAPSHOT
[ERROR] dependency: org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT (compile)
[ERROR] 	Could not find artifact org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
[ERROR] 	Could not find artifact org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT in huawei-obs-sdk (https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/)
[ERROR] 	Could not find artifact org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT in snapshots (https://repository.apache.org/content/repositories/snapshots/)
[ERROR] 	Could not find artifact org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots)

The artifact only ever existed in the Apache snapshot repository. That repository keeps a single snapshot version per artifact: https://repository.apache.org/content/repositories/snapshots/org/apache/doris/je/ now lists only 18.3.17-doris-SNAPSHOT (uploaded 2026-11-02 06:36 UTC), and 18.3.14-doris-SNAPSHOT/maven-metadata.xml returns 404. je is not published anywhere else, including Maven Central.

Machines and CI runners that built before still have the jar in ~/.m2, so the breakage only shows on a fresh environment. That is probably why it has not been noticed yet.

What You Expected?

fe/pom.xml resolves on a clean machine, either by pinning the snapshot that is currently published (18.3.17-doris-SNAPSHOT resolves today) or, better, by depending on a released, non-snapshot build of je so this cannot repeat the next time the snapshot rotates.

How to Reproduce?

With an empty local repository, no project needed:

cd "$(mktemp -d)"
mvn -B -Dmaven.repo.local="$PWD/m2" dependency:get \
    -Dartifact=org.apache.doris:je:18.3.14-doris-SNAPSHOT \
    -DremoteRepositories=apache.snapshots::::https://repository.apache.org/content/repositories/snapshots/
# -> Could not find artifact org.apache.doris:je:jar:18.3.14-doris-SNAPSHOT in apache.snapshots

mvn -B -Dmaven.repo.local="$PWD/m2" dependency:get \
    -Dartifact=org.apache.doris:je:18.3.17-doris-SNAPSHOT \
    -DremoteRepositories=apache.snapshots::::https://repository.apache.org/content/repositories/snapshots/
# -> succeeds

Or clone the repository on a machine that has never built Doris and run the FE build.

Anything Else?

Bumping je.version to 18.3.17-doris-SNAPSHOT builds and passes FE unit tests here (checked the org/apache/doris/catalog/**/*Test pattern, 477 tests), so a one-line bump unblocks fresh builds immediately. A released version would be the durable fix.

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
Ngôn ngữ chính
Java
Star
16.2k
Fork
4k
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
671

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 apache/doris

Tất cả issue của apache/doris

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.