Categories
Coding Mac OS X

Try Apache Maven Daemon

Have nothing better to do this – long, if you are in Czech Republic – weekend? Why not try Apache Maven Daemon, instead?

Well, sadly if you are developing your Java code on an Apple Silicon Mac, there’s no ARM build yet due to infrastructure issues on Github.

Thankfully, this is open source and we can just build it from source! I created a script for the for the truly lazy – or those which prefer to automate things – to automate the task. It uses Homebrew to install required dependencies, so make sure you have that on your system before running the script.

Note: you should NOT run scripts from random strangers on the internet. So, do read it before running. After you do, then just run the following command to build it from source and install it:

curl -s "https://gist.githubusercontent.com/orpiske/1246823bdce005e1cad7a4ac67719388/raw/0588c583bce6e3f134d00d06d48e4c6c4fff6bce/install.sh" | sh -s -- all

If you want to clean the mess then just run the all with clean and the script will clean it up:

curl -s "https://gist.githubusercontent.com/orpiske/1246823bdce005e1cad7a4ac67719388/raw/0588c583bce6e3f134d00d06d48e4c6c4fff6bce/install.sh" | sh -s -- clean

Lastly, just include the following to your PATH variable: ${HOME}/.local/opt/mvnd-0.8.0/bin. This should allow you to just type mvnd from any place on the terminal and build whatever you need.

By Otavio Piske

Just another nerd

Leave a Reply

Your email address will not be published.