Skip to content
Jean-Christophe GAY edited this page Jul 16, 2015 · 23 revisions

maven-notifier

A collection of notifiers for Maven 3.x.

Configuration

If needed, configuration can be done by creating a maven-notifier.properties file in your ~/.m2 folder and using keys:

  • notifier.implementation = which implementation to use. (growl, notificationcenter, simplenc, notifysend, systemtray, snarl, pushbullet, kdialog, notifu, anybar).
  • notifier.message.short = true/false. Choose between a full description with each module summary or a short one just reflecting the build status. (true by default)
  • notifier.threshold = a time in second under which a build will not fire a notification. (-1 by default meaning a notification will always be sent). If set to 10 for example, no notification will be triggered if the build ends before 10s.

Notification can be skipped when launching Maven.

mvn package -DskipNotification

The implementation can be override at runtime.

mvn package -DnotifyWith=growl    

Default notifiers

maven-notifier will try to find an available notifier on running os.

OS X:

  • Growl,
  • Notification Center (with terminal-notifier)
  • System Tray

Linux:

  • Kdialog,
  • notify-send,
  • System Tray

Windows:

  • Snarl,
  • Growl,
  • Toaster,
  • System Tray

Notifiers Configuration

Clone this wiki locally