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

[MWRAPPER-156] mvnw wrapper wget fail to download maven.zip...

Đang mở
#324 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, linux
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với đường dẫn tải xuống của wrapper mvnw và tái hiện lỗi trong một container Alpine Linux sử dụng BusyBox wget phía sau proxy. Công việc được xem là hoàn tất khi wrapper tải xuống thành công các phiên bản Maven được hỗ trợ mà không yêu cầu gói wget đầy đủ; issue không nêu cụ thể tệp kiểm thử nào.

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

Mô tả

bug priority:major

Mathieu CARBONNEAUX opened MWRAPPER-156 and commented

i use alpine linux container (eclipse-temurin:17-jdk-alpine) to build my java project with maven wrapper...

and i'm behind proxy (i use .mvn/jvm.config file to set proxy)...

 

when upgraded maven wrapper (mvn wrapper:wrapper -Dmaven=3.8.1 and maven wrapper >=3.2.x and tryed many other higher version), they fail to download maven jar...

with error:

wget: server returned error: HTTP/1.1 500 handshakefailed

after many try i found that is related with version of wget on alpine... by default alpine linux use busybox version of wget... and busybox version has not all argument options are available vs original complete version...

 

i've resolved first by wrapp old version of maven 3.6.3 and wrapper 3.1.1 :

mvn wrapper:wrapper -Dmaven=3.6.3

but is not satisfesant... because i'm blocked with old version of maven...

 

i've also resolved by adding complet version of wget in alpine linux:

 

apk add wget

and is work fine with latest version of maven (3.9.x) ...

 

the berter solution while be to support busybox wget command on alpine linux.... this permits to have lower sized container to build maven wrapper project... and also work by default on alpine temurin...

 


Affects: 3.2.0, 3.3.0, 3.3.1, 3.3.2

Ngôn ngữ chính
Java
Star
253
Fork
77
Merge trung bình
22 giờ 9 phút
Pull request đã merge (30 ngày)
7

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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/maven-wrapper

Tất cả issue của apache/maven-wrapper

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.