What's causing this Maven/JBehave error?

人走茶凉 提交于 2019-12-05 14:08:15

I think one of you dependencies implicitly uses previous version of log4j which does not include org.apache.log4j.Priority. Run mvn dependency:tree -Dverbose to see the dependency tree and then exclude old log4j version.

Update: According to the given tree, your log4j dependency has a provided scope: log4j:log4j:jar:1.2.16:provided, which means it won't be included into classpath during maven test phase. You may want to explicitly mention log4j artifact in your pom with the test scope.

According to author comments, explicit log4j plugin dependency has fixed the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!