Today, I finally invested the time to fix an issue forever, hopefully 😄
We need Maven3 to install a few jars into the local Maven repo. Regrettably, older versions of Maven3 are regularly deleted from the download server (https://dlcdn.apache.org/maven/maven-3/). This broke our Docker image build process over and over again.
To fix this misery, I wrote a small Babashka script that finds out the latest version of Maven3 on its own:
https://github.com/simplemono/a-la-carte/blob/main/maven3/install
It replaces the old script that suffered from the described problem. The a-la-carte project contains this new script to conveniently install Maven3 into your Docker image if it is based on Ubuntu.
https://github.com/simplemono/a-la-carte/blob/main/install.md#maven3
Why not just
apt install maven
?We needed a newer version of Maven than what was available via apt. If I remember correctly for a script of Datomic Pro that also needs `mvn`.
I see. FWIW, seems like you can find any older Maven version in their archive: https://archive.apache.org/dist/maven/maven-3/
Cool, thanks a lot, that would also solve the issue. It would be great if they just have the archive or at least use it for the normal download URLs.