Skip to content

Instantly share code, notes, and snippets.

@shyiko
Created February 12, 2012 21:55
Show Gist options
  • Save shyiko/1811037 to your computer and use it in GitHub Desktop.
Save shyiko/1811037 to your computer and use it in GitHub Desktop.
Maven powered with Ubuntu Notify OSD
#!/bin/bash
mvn $*
if [ $? -gt 0 ]
then
notify-send -i /usr/share/icons/Humanity/status/64/dialog-warning.svg "Maven" "Build failed."
else
notify-send -i /usr/share/icons/Humanity/actions/64/gtk-info.svg "Maven" "Build succeeded."
fi
@shyiko
Copy link
Author

shyiko commented Feb 12, 2012

Download and add it to the PATH.
Use mvnfy instead of mvn when you want notification of build completion.
Example : mvnfy clean package
Result : http://i42.tinypic.com/30hl8o0.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment