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?

Updates:
– 2022-09-23: the script was updated to Maven Daemon version 0.8.1.

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/a4b66233ac6073ba3e62e53e8a350af3/raw/4b98a4f21b2684714b72ba83d1b42480961e342a/install-mvnd-0.8.1.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/a4b66233ac6073ba3e62e53e8a350af3/raw/4b98a4f21b2684714b72ba83d1b42480961e342a/install-mvnd-0.8.1.shhttps://gist.github.com/orpiske/a4b66233ac6073ba3e62e53e8a350af3" | sh -s -- clean

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

If you have comments or notes about the script, you can post a comment on its Gist.

By Otavio Piske

Just another nerd

Leave a Reply

Your email address will not be published. Required fields are marked *