carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
524 stars 423 forks source link

Maven Proxy Not Work since 3.9.0 #490

Closed c85645 closed 1 month ago

c85645 commented 1 month ago

Hi

When I use GitLab to run CI/CD, I find that the Maven proxy does not work since version 3.9.0, but it works in 3.8.x. Here is my simple code in .gitlab-ci.yml mvn -Dhttps.proxyHost=$PROXY_HOST -Dhttps.proxyPort=$PROXY_PORT -Dhttp.proxyHost=$PROXY_HOST -Dhttp.proxyPort=$PROXY_PORT clean package In version 3.9.0, it causes a connection timeout due to the proxy not working. In version 3.8.8, it works.

These are the image versions I tested: image: maven:3.9.8-amazoncorretto-11 image: maven:3.8.8-amazoncorretto-11

carlossg commented 1 month ago

is it a problem with the docker image or with maven itself?

c85645 commented 1 month ago

I'm not sure, but I think this problem is with Maven itself.

carlossg commented 1 month ago

you can check https://maven.apache.org/index.html#how-to-get-support

c85645 commented 1 month ago

Okay, maybe I should ask Maven support. Thank you, and this ticket can be closed.