setup-maven icon indicating copy to clipboard operation
setup-maven copied to clipboard

support custom url for downloading maven

Open uladzislau-orlovskiy opened this issue 2 years ago • 1 comments

Hi, I am using self-hosted runners with no internet connection. It would be nice to be able to download maven package from my internal artifactory with your github aciton. Thank you in advance. Regards

uladzislau-orlovskiy avatar Sep 29 '23 09:09 uladzislau-orlovskiy

Hi @stCarolas, the problem seems to be the following line.

const downloadUrl = `https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${version}/apache-maven-${version}-bin.tar.gz`;

There is no configuration option to use an alternative URL to download the tar.gz archive. We have the same problem internally and hit the pull rate limit of repo.maven.apache.org. Please implement an option to change the download URL.

Volker

volker-raschek avatar Oct 08 '25 11:10 volker-raschek