Mathieu CARBONNEAUX created MWRAPPER-156:
--------------------------------------------
Summary: mvnw wrapper wget fail to download maven.zip...
Key: MWRAPPER-156
URL: https://issues.apache.org/jira/browse/MWRAPPER-156
Project: Maven Wrapper
Issue Type: Bug
Components: Maven Wrapper Scripts
Affects Versions: 3.3.2, 3.3.1, 3.3.0, 3.2.0
Reporter: Mathieu CARBONNEAUX
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 tryed many
other higher version), they fail to download maven jar...
with error:
{noformat}
wget: server returned error: HTTP/1.1 500 handshakefailed{noformat}
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 :
{noformat}
mvn wrapper:wrapper -Dmaven=3.6.3
{noformat}
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:
{noformat}
apk add wget
{noformat}
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...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)