[MWRAPPER-156] mvnw wrapper wget fail to download maven.zip...
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, linux
- Domain
- build-system
Research direction
Start with the mvnw wrapper's download path and reproduce the failure in an Alpine Linux container using BusyBox wget behind a proxy. Done means the wrapper downloads supported Maven versions successfully without requiring the full wget package; no specific test file is named in the issue.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-wrapper
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-wrapper#442 ·
-
priority:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven-wrapper#280 · 1 comment · 1 reaction ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
apache/maven-wrapper#454 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
apache/maven-wrapper#441 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/maven-wrapper#425 · 1 comment · 4 reactions ·
All issues in apache/maven-wrapper
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aoqia194/leaf-loader#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/streampark#4521 ·
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day
-
Issue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OpenAPITools/openapi-generator#25107 ·
Maintainers usually reply within 1 day