Skip to content

Commit

Permalink
Removed StaticLoggerBinder to make it work with maven 3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jschutijzer committed Jul 12, 2016
1 parent 50308bb commit b3416b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions grep-maven-plugin/src/main/java/net/radai/GrepMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit b3416b7

Please sign in to comment.