this post was submitted on 20 Oct 2023
1 points (100.0% liked)

Lisp

52 readers
3 users here now

founded 1 year ago
MODERATORS
 

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

top 4 comments
sorted by: hot top controversial new old
[โ€“] p-himik@alien.top 1 points 11 months ago (1 children)

Why not just apt install maven?

[โ€“] maxw85@alien.top 1 points 11 months ago (1 children)

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`.

[โ€“] p-himik@alien.top 1 points 11 months ago (1 children)

I see. FWIW, seems like you can find any older Maven version in their archive: https://archive.apache.org/dist/maven/maven-3/

[โ€“] maxw85@alien.top 1 points 11 months ago

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.