Richfaces maven-resource-dependency-plugin SLF4J Build-Error

时间:2015-01-28 17:24:47

标签: java maven richfaces maven-3 slf4j

当我尝试在Maven 3.0.4中使用org.richfaces.cdk.maven-resource-dependecy-plugin版本3.3.3.Final(或3.3.4.Final)时出现此错误:

  

SLF4J:slf4j绑定所请求的版本1.6.99不是   兼容[1.5​​.5,1.5.6,1.5.7,1.5.8,1.5.9,1.5.10] SLF4J:见   http://www.slf4j.org/codes.html#version_mismatch了解更多详情。

     

...

     

[错误]无法执行目标   org.richfaces.cdk:Maven的资源依赖性的插件:3.3.4.Final:装配资源   项目myproject-web上的(默认):目标的执行默认值   org.richfaces.cdk:Maven的资源依赖性的插件:3.3.4.Final:装配资源   失败:执行时遇到API不兼容问题   org.richfaces.cdk:Maven的资源依赖性的插件:3.3.4.Final:装配资源:   java.lang.AbstractMethodError:   org.slf4j.impl.Log4jLoggerAdapter.log(Lorg / SLF4J /标记; Ljava /郎/字符串; ILjava /郎/字符串; Ljava /郎/ Throwable的;)V

检查pom的依赖关系层次结构仅显示版本1.7.2和1.7.5中的slf4j jar。

THX

编辑(插件配置):

                 <plugin>
                    <groupId>org.richfaces.cdk</groupId>
                    <artifactId>maven-resource-dependency-plugin</artifactId>
                    <version>3.3.4.Final</version>
                    <configuration>
                        <webSourceDirectory>${basedir}/src/main/webapp</webSourceDirectory>
                        <scriptFilePath>custom-dependencies.js</scriptFilePath>
                        <styleFilePath>custom-dependencies.xcss</styleFilePath>
                        <afterScriptIncludes>
                            <afterScriptInclude>js/jquery-1.6.1.min.js</afterScriptInclude>
                            <afterScriptInclude>js/jquery-ui-1.8.21.custom.min.js</afterScriptInclude>
                            <afterScriptInclude>js/jquery.blockUI.min.js</afterScriptInclude>
                            <afterScriptInclude>js/jquery.maskedinput-1.3.min.js</afterScriptInclude>
                            <afterScriptInclude>js/uniqaCommonScript.js</afterScriptInclude>
                            <afterScriptInclude>js/datepicker.js</afterScriptInclude>
                            <afterScriptInclude>js/svp.js</afterScriptInclude>
                        </afterScriptIncludes>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>process-resources</phase>
                            <goals>
                                <goal>assembly-resources</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

0 个答案:

没有答案