类路径在grails run-app上包含多个SLF4J绑定

meh*_*ood 5 grails logback

我收到了以下错误 grails run-app

Oct 20, 2014 6:22:22 PM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
| Configuring classpath
| Error SLF4J: Class path contains multiple SLF4J bindings.
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/ch/qos/logback/logback-    classic/1.0.12/logback-classic-1.0.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: Found binding in [jar:file:/Users/minhaj/.m2/repository/org/grails/grails-plugin-    log4j/2.4.2/grails-plugin-log4j-2.4.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
| Error SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
| Error SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Run Code Online (Sandbox Code Playgroud)

但是我grails-plugin-log4j明确地排除了,但看起来它不起作用.

inherits("global") {
    excludes 'grails-plugin-log4j', 'log4j'
}
Run Code Online (Sandbox Code Playgroud)

在grails应用程序中添加logback插件后是否有人遇到类似的问题?(我正在使用grails 2.4.2)