Get notified when a build (Maven or similar) is finished on your local machine (Mac OS X)

For large projects, local builds can take a lot (more than 10 minutes).

During this time, you normally switch to another task or simply get stuck in social media.

If you use a bash console to run Maven or similar tools, this simple trick can save you some minutes a day.

  • Install this:

    Credits: https://github.com/julienXX
  • Add this alias to your .bash_profile:

    nwd stands for Notify When Done.
  • Append “; nwd” to each build command. e.g. :

When the build will be finished, you will be notified with a pop up and go back to the task:

Screen Shot 2016-05-27 at 16.50.02

The trick can be easily emulated on others OS. Ubuntu, for example, has the built in “notify-send” to send notifications from the terminal.

Leave a Comment

Your email address will not be published.

*