From b3416b7acf29bd6a07f19fa795e6adcf445f1f80 Mon Sep 17 00:00:00 2001 From: Joris Schutijzer Date: Tue, 12 Jul 2016 16:01:52 +0200 Subject: [PATCH] Removed StaticLoggerBinder to make it work with maven 3.3.3 --- grep-maven-plugin/src/main/java/net/radai/GrepMojo.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/grep-maven-plugin/src/main/java/net/radai/GrepMojo.java b/grep-maven-plugin/src/main/java/net/radai/GrepMojo.java index 1d692ab..1f2b4c3 100644 --- a/grep-maven-plugin/src/main/java/net/radai/GrepMojo.java +++ b/grep-maven-plugin/src/main/java/net/radai/GrepMojo.java @@ -11,9 +11,12 @@ import org.apache.maven.plugin.logging.Log; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; -import org.slf4j.impl.StaticLoggerBinder; -import java.io.*; +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.StringReader; +import java.io.StringWriter; import java.util.HashMap; import java.util.List; import java.util.regex.Matcher; @@ -59,7 +62,6 @@ public void setOutputPattern(String outputPattern) { @Override public void execute() throws MojoExecutionException, MojoFailureException { - StaticLoggerBinder.SINGLETON.setLog(getLog()); //take care of slf4j binding to maven plugin logging try { for (Grep grep : greps) { Pattern lookingFor = Pattern.compile(grep.getGrepPattern());