private boolean hasSlf4jBinding(File file) throws MojoExecutionException {
        try (JarFile jarFile = new JarFile(file)){
            return jarFile.getEntry("org/slf4j/impl/StaticLoggerBinder.class") != null;
        } catch (IOException e) {
            throw new MojoExecutionException(e.getMessage(), e);
        }
    }
private boolean hasSlf4jBinding ( File file ) throws MojoExecutionException { try ( JarFile jarFile = new JarFile ( file ) ) { return jarFile . getEntry ( "org/slf4j/impl/StaticLoggerBinder.class" ) != null ; } catch ( IOException e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } }
Returns true if the given jar file contains an SLF4J binding
@param file the file
@return true if the jar file contains an SLF4J binding