Giter Site home page Giter Site logo

jcgay / maven-notifier Goto Github PK

View Code? Open in Web Editor NEW
75.0 6.0 13.0 1021 KB

Desktop notifications for Maven 3.x.

License: Other

Java 52.04% Groovy 47.03% Dockerfile 0.93%
maven-extension growl snarl terminal-notifier notify-send desktop-notifications pushbullet anybar notifu

maven-notifier's Introduction

Maven Notifier

Notifiers that can be used with Maven 3.x. A status notification will be send at the end of a Maven build.

Installation

$M2_HOME refers to maven installation folder.

.
├── bin
├── boot
├── conf
└── lib

OS X ?

You can install a pre-packaged maven named maven-deluxe using brew. It comes with maven-color, maven-notifier and maven-profiler. It is based on latest maven release.

brew tap jcgay/jcgay
brew install maven-deluxe

Maven >= 3.3.x

Get maven-notifier and copy it in %M2_HOME%/lib/ext folder.

or

Use the core extensions configuration mechanism by creating a ${maven.multiModuleProjectDirectory}/.mvn/extensions.xml file with:

	<?xml version="1.0" encoding="UTF-8"?>
	<extensions>
	    <extension>
	      <groupId>fr.jcgay.maven</groupId>
	      <artifactId>maven-notifier</artifactId>
	      <version>2.1.2</version>
	    </extension>
	</extensions>

Maven >= 3.1

Get maven-notifier and copy it in your $M2_HOME/lib/ext folder.

Maven < 3.1

Get maven-notifier and extract it in your $M2_HOME/lib/ext folder.

What's new ?

See CHANGELOG to get latest changes.

Notifiers

Notifier Screenshot
Growl, for Windows and OS X. Growl
Snarl, for Windows Snarl
terminal-notifier, OS X terminal-notifier
notification center OS X (since Mavericks) notification-center
notify-send for Linux notify-send
SystemTray since Java 6 System Tray
Pushbullet pushbullet
Kdialog for KDE Kdialog
notifu for Windows notifu
AnyBar for OS X and Linux anybar
Toaster for Windows 8 Toaster
Notify since Java 6 Notify
BurntToast for Windows 10 BurntToast
Slack Slack

Sound

Play a success or failure sound when build ends.

Configuration

Go to Wiki to read full configuration guide for each notifier.

Build status

Build Status Coverage Status Quality Gate Technical debt ratio

Release

mvn -B release:prepare release:perform

maven-notifier's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jcgay avatar the-alchemist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

maven-notifier's Issues

[DepShield] (CVSS 8.1) Vulnerability due to usage of org.beanshell:bsh:2.0b4

Vulnerabilities

DepShield reports that this application's usage of org.beanshell:bsh:2.0b4 results in the following vulnerability(s):


Occurrences

org.beanshell:bsh:2.0b4 is a transitive dependency introduced by the following direct dependency(s):

org.testng:testng:6.8.21
        └─ org.beanshell:bsh:2.0b4

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

notifier.system-tray.wait ignored

Value set in notifier.system-tray.wait is ignored
By setting notifier.system-tray.wait=10s or notifier.system-tray.wait=10 (without 's') the notification popups and disappears quickly. It seems that default value 2s is always used

No notification sent when build throw exception

If the build fails in early stage, there is no notification sent.

In that case MavenExecutionResult (as DefaultMavenExecutionResult) field project is null and exceptions is not empty.
Currently il fails with a NPE in com/github/jcgay/maven/notifier/AbstractCustomEventSpy.java:105.

It should send a failure notification, maybe with the exceptions messages.

Unable to provision, see the following errors:

Hello,

I am using the notifier 2.1.0 with Maven 3.6.1 and I got this exception: see complete log:

[WARNING] Error injecting: fr.jcgay.maven.notifier.NotificationEventSpyChooser
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) No implementation for org.codehaus.plexus.logging.Logger was bound.
  while locating fr.jcgay.maven.notifier.NotificationEventSpyChooser

Maven (or guice) is unable to inject a org.codehaus.plexus.logging.Logger into fr.jcgay.maven.notifier.NotificationEventSpyChooser

  • I am using mvnw with Maven 3.6.1 (tried also with 3.3.9, 3.6.0)
  • Tried with Java 8 and 11, same effect
  • Tried with Maven 3.6.1 (no wrapper), same effect
  • I am using two extensions maven-profiler and maven-notifier: extensions.txt
  • I'm invoking the following plugin directly: mvn org.eclipse.scout:eclipse-settings-maven-plugin:eclipse-settings. It seems to fails only with it (tried with version plugin without problem).

Reproducing is easy as pie (you don't even need a pom.xml):

mvn -N io.takari:maven:0.7.6:wrapper -Dmaven=3.6.1
curl -L https://github.com/jcgay/maven-notifier/files/3244738/extensions.txt  -o .mvn/extensions.xml
./mvnw org.eclipse.scout:eclipse-settings-maven-plugin:eclipse-settings

I don't know if it is feasible, but I'm expecting the extension to be invisible: it should not fail the build if it is unable to be execute.

build notifications are not sent after installing according to instructions in README

Environment:

mvn --version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T19:39:06Z)
Maven home: /home/vagrant/.sdkman/candidates/maven/current
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-31-generic", arch: "amd64", family: "unix"

debug log:
https://gist.github.com/17d4fe2f4b824eaf24f8a27c917b0869

I've also tried this with the default version of Maven installed by Ubuntu 16.04:

mvn --version 
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-31-generic", arch: "amd64", family: "unix"

debug log:
https://gist.github.com/hardyoyo/b2ca6ade339d3f48d62bf29b3b942ae8

Any ideas?

Notification center: fails when no sound defined

[WARNING] Failed to notify spy com.github.jcgay.maven.notifier.NotificationEventSpyChooser: 12
java.lang.ArrayIndexOutOfBoundsException: 12
    at com.github.jcgay.maven.notifier.notificationcenter.NotificationCenterNotifier.buildCommand(NotificationCenterNotifier.java:65)
    at com.github.jcgay.maven.notifier.notificationcenter.NotificationCenterNotifier.onEvent(NotificationCenterNotifier.java:41)
    at com.github.jcgay.maven.notifier.NotificationEventSpyChooser.onEvent(NotificationEventSpyChooser.java:33)
    at org.apache.maven.eventspy.internal.EventSpyDispatcher.onEvent(EventSpyDispatcher.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:539)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Snarl notification not always working

Hi,

There are a few scenarios when the snarl notification does not work:

  • When launching simultaneous builds: only the first one will have a notification, the second will print a warning: Failed to notify...
  • If a build is stopped (CTRL-C), then no further notification will work until Snarl is restarted.

If I understood the problem correctly, I believe this is caused by the maven-notifier that generates a new completely random password when registering with Snarl while always using the same application id.

This prevents the second process from notifying as the password does not match, and if maven does not correctly unregister itself at the end of the build then no more notification will occur (password will never match).

From what I could see:

register?password=ad897f06-22f7-4e77-b20f-84cf952f5207&app-sig=application/x-vnd-apache.maven&uid=c62ae50e-2824-4d9b-9ced-acad75826924&title=Maven

unregister?password=ad897f06-22f7-4e77-b20f-84cf952f5207&app-sig=application/x-vnd-apache.maven

Maybe using a random app-sig would fix the problem?

Thanks

Notifications with notifu does not work for onFailWithoutProject

Maven 3.3.3, maven-notifier-1.9, notifu-1.6, windows 10.

I made a pom.xml unparseable. My output looks like:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\Users\micdom\idea\BPP\pom.xml: start tag unexpected character " (position: TEXT seen...

but instead of receive notifu message I got notifu internal error window with message: Unrecognized argument '(position:'

How can I change growl ip

First of all thank for your work. The plugin looks very promising and well documented.

In my configuration I build on virtual machine, and display growl messages in host machine. How can I change the ip to which the messages are sent?

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.jboss.netty:netty:3.2.1.Final

Vulnerabilities

DepShield reports that this application's usage of org.jboss.netty:netty:3.2.1.Final results in the following vulnerability(s):


Occurrences

org.jboss.netty:netty:3.2.1.Final is a transitive dependency introduced by the following direct dependency(s):

fr.jcgay.send-notification:send-notification:0.14.0
        └─ com.google.code.jgntp:jgntp:1.2.1
              └─ org.jboss.netty:netty:3.2.1.Final

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Mac OS X - Terminal / Java window

Hi!

I really loved your project! The whole maven-deluxe bundle is awesome!

Just came across an annoying thing in the notifier plugin.
It uses terminal-notifier and I'm able to see the notification, but when I click on it, it opens the Apple's Terminal, but I'm using iTerm2.
So I can't click in the notification, because it takes me to a terminal that I don't use.

I see in the class fr.jcgay.notification.notifier.notificationcenter.TerminalNotifierConfiguration that you explicitly use com.apple.Terminal, but I still didn't figure how do you chain everything together and if it's possible to refer to the process that called Maven.

Another thing is that after installing your package through brew, with the following links:

maven-color, maven-notifier and maven-profiler

brew tap jcgay/jcgay
brew install maven-deluxe
brew link --overwrite maven-deluxe

I noticed a few things:

  • I already had Maven 3.3.9 installed and brew had to download it again.
  • Now it switched to a Desktop version of Java, and everytime that I run Maven, I can see the Java icon in the Dock. I'm able to disable it by forcing -Djava.awt.headless=true: MAVEN_OPTS="-Djava.awt.headless=true" mvn clean install but I'm also not sure of what caused it.

Thank you.
Regards,
Bruno Candido Volpato da Cunha

[DepShield] (CVSS 5.9) Vulnerability due to usage of com.google.guava:guava:18.0

Vulnerabilities

DepShield reports that this application's usage of com.google.guava:guava:18.0 results in the following vulnerability(s):


Occurrences

com.google.guava:guava:18.0 is a transitive dependency introduced by the following direct dependency(s):

fr.jcgay.send-notification:send-notification:0.14.0
        └─ com.google.guava:guava:18.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

fails under mvnd

The notifier fails to notify after the reactor builds finishes successfully when running under https://github.com/mvndaemon/mvnd

[WARN] Failed to notify spy fr.jcgay.maven.notifier.NotificationEventSpyChooser: Error while sending notification to notify-send.
Check your configuration at: https://github.com/jcgay/send-notification/wiki/notify-send

Under some configurations, there are logging conflicts between maven-notifier and build

When building with maven 3.2.1 the wisdom framework, I get

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/Maven/lib/ext/slf4j-nop-1.7.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/Maven/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]

errors at build startup, and not the slightest message is output by maven.
I'm not yet sure if it is maven-notifier's fault but, as it is the one contributing the slf4j-nop-1.7.4.jar, I guess it's a valid suggestion.

[DepShield] (CVSS 9.8) Vulnerability due to usage of org.codehaus.plexus:plexus-utils:2.0.6

Vulnerabilities

DepShield reports that this application's usage of org.codehaus.plexus:plexus-utils:2.0.6 results in the following vulnerability(s):


Occurrences

org.codehaus.plexus:plexus-utils:2.0.6 is a transitive dependency introduced by the following direct dependency(s):

org.apache.maven:maven-core:3.0.5
        └─ org.codehaus.plexus:plexus-utils:2.0.6

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

performance

Is there anyway to improve performance of the extension? My boss won't accept the extra 3 seconds it adds to the build.

Fails with maven 3.2.5

Seems maven has upgraded to guava 18.0

---------------------------------------------------
constituent[0]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/jansi-1.11.jar
constituent[1]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/logback-classic-1.1.2.jar
constituent[2]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/logback-core-1.1.2.jar
constituent[3]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/maven-color-core-0.5.jar
constituent[4]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/maven-color-logback-0.5.jar
constituent[5]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/ext/maven-notifier-0.10.jar
constituent[6]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-api-1.0.0.v20140518.jar
constituent[7]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-connector-basic-1.0.0.v20140518.jar
constituent[8]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-impl-1.0.0.v20140518.jar
constituent[9]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-spi-1.0.0.v20140518.jar
constituent[10]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-transport-wagon-1.0.0.v20140518.jar
constituent[11]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aether-util-1.0.0.v20140518.jar
constituent[12]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/aopalliance-1.0.jar
constituent[13]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/cdi-api-1.0.jar
constituent[14]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/commons-cli-1.2.jar
constituent[15]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/commons-io-2.2.jar
constituent[16]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/commons-lang-2.6.jar
constituent[17]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/guava-18.0.jar
constituent[18]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/javax.inject-1.jar
constituent[19]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/jsoup-1.7.2.jar
constituent[20]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/jsr250-api-1.0.jar
constituent[21]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-aether-provider-3.2.5.jar
constituent[22]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-artifact-3.2.5.jar
constituent[23]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-compat-3.2.5.jar
constituent[24]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-core-3.2.5.jar
constituent[25]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-embedder-3.2.5.jar
constituent[26]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-model-3.2.5.jar
constituent[27]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-model-builder-3.2.5.jar
constituent[28]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-plugin-api-3.2.5.jar
constituent[29]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-repository-metadata-3.2.5.jar
constituent[30]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-settings-3.2.5.jar
constituent[31]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/maven-settings-builder-3.2.5.jar
constituent[32]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/org.eclipse.sisu.inject-0.3.0.M1.jar
constituent[33]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar
constituent[34]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/plexus-cipher-1.7.jar
constituent[35]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/plexus-component-annotations-1.5.5.jar
constituent[36]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/plexus-interpolation-1.21.jar
constituent[37]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/plexus-sec-dispatcher-1.3.jar
constituent[38]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/plexus-utils-3.0.20.jar
constituent[39]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/sisu-guice-3.2.3-no_aop.jar
constituent[40]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/slf4j-api-1.7.5.jar
constituent[41]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/wagon-file-2.8.jar
constituent[42]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/wagon-http-2.8-shaded.jar
constituent[43]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/wagon-http-shared-2.8.jar
constituent[44]: file:/usr/local/Cellar/maven/3.2.5/libexec/lib/wagon-provider-api-2.8.jar
constituent[45]: file:/usr/local/Cellar/maven/3.2.5/libexec/conf/logging/
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build()Lcom/google/common/cache/Cache;
    at com.google.inject.internal.WeakKeySet.<init>(WeakKeySet.java:56)
    at com.google.inject.internal.InheritingState.<init>(InheritingState.java:65)
    at com.google.inject.internal.InjectorShell$Builder.getState(InjectorShell.java:203)
    at com.google.inject.internal.InjectorShell$Builder.lock(InjectorShell.java:114)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
    at com.google.inject.Guice.createInjector(Guice.java:96)
    at com.google.inject.Guice.createInjector(Guice.java:73)
    at com.google.inject.Guice.createInjector(Guice.java:62)
    at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
    at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:206)
    at org.apache.maven.cli.MavenCli.container(MavenCli.java:400)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:210)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Change failure message with short mode

When the notification message is set to be short, the failure message is '...'.
It is not necessary readable as some notifiers can't render images.
It should be replaced with 'Failed'.

Clarify installation for Growl

I've growl installed on my machine, but maven doesn't send any notification.

To undestand why, I've added a test to maven-notifier which creates and send a message.

That test outputs the following messages

11:30:56.251 [New I/O client worker #1-1] 67 DEBUG jgntp.message - Message received
GNTP/1.0 -ERROR NONE
Error-Code: 400
Error-Description: Invalid key hash
Origin-Machine-Name: NDX-PC-W7
Origin-Software-Name: Growl/Win
Origin-Software-Version: 2.0.9.1
Origin-Platform-Name: Microsoft Windows NT 6.1.7601 Service Pack 1
Origin-Platform-Version: 6.1.7601.65536
X-Message-Daemon: Growl/Win
X-Timestamp: 20/05/2014 11:30:56
11:30:56.261 [New I/O client worker #1-1] 40 ERROR c.g.j.m.n.growl.Slf4jGntpListener - Registration error: NOT_AUTHORIZED - Invalid key hash
11:30:56.261 [New I/O client worker #1-1] 158 INFO  c.g.c.j.internal.io.NioTcpGntpClient - Scheduling registration retry in [3-SECONDS]
11:30:59.271 [pool-2-thread-1] 68 DEBUG c.g.c.j.internal.io.NioGntpClient - Registering GNTP application [Maven]
11:30:59.271 [New I/O client worker #1-2] 51 DEBUG jgntp.message - Sending message
GNTP/1.0 REGISTER NONE SHA512:111581B770A50B07372A85ED928A8B6F3C34180782D43E1335BC3737E4FC57E70D23EBEFEFB3BF2363619E80D36707EF121AB8D9DA8C6E638F1927633B0428E6.9F99086EC1E3AD095E60EA607E321303
Application-Name: Maven
Notifications-Count: 1

Notification-Name: build-status-notification
Notification-Display-Name: Build result status
Notification-Enabled: True

Yup, I'm using Growl for Windows.

So, realizing it was mainly my fault, I guess it could be a good idea to have a standalone test mode of that notifier that would simply send a "maven-notifier is working" message to Growl and, if failing, try to examine error message to help the dumb user (me, in that case) configure this notifier. How ? well, I don't really know :-/

maven-notifier eats all messages of maven 3.2.1

It's comeback of #7.
I've finally discovered maven-notifier worked OK with maven 3.0.4, but ate all messages when using maven 3.2.1 with just that header

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/Maven/bin/../lib/ext/slf4j-nop-1.7.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/Maven/bin/../lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]

Removing the slf4j-nop-1.7.4.jar resulted into messages being displayed on console, which is ok, excepted for the ones sent by maven-notifeir.

[DepShield] (CVSS 5.9) Vulnerability due to usage of com.squareup.okhttp:okhttp:2.0.0-RC1

Vulnerabilities

DepShield reports that this application's usage of com.squareup.okhttp:okhttp:2.0.0-RC1 results in the following vulnerability(s):


Occurrences

com.squareup.okhttp:okhttp:2.0.0-RC1 is a transitive dependency introduced by the following direct dependency(s):

fr.jcgay.send-notification:send-notification:0.14.0
        └─ com.squareup.okhttp:okhttp:2.0.0-RC1

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

request: plugin usage

If the extension was available as a plugin it could be

  • selected using a profile
  • updated with versions-maven-plugin
        <plugin>
          <groupId>fr.jcgay.maven</groupId>
          <artifactId>maven-notifier</artifactId>
          <version>${dep.maven-notifier}</version>
          <extensions>true</extensions>
        </plugin>

Please consider. Same for maven-profiler.

How to notify asynchronously?

On my computer (Windows10) command line terminal waits until notification is closed.
Is it possible to launch notification message and immediately return to user caret?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.