我们使用 ivy 来管理一个多项目 java 应用程序,最近这个错误开始在我们构建时出现。这是什么原因造成的?
最佳答案
这是通过在 ivy.xml 中的依赖项部分的末尾添加以下行来解决的:
<dependencies>
<exclude module="log4j-over-slf4j" />
</dependencies>
为什么这是个问题?
- 看起来像 sjf4j 的 log4j 桥 has an incomplete implementation
- This url更详细地解释它。
关于java.lang.NoSuchMethodError : org. apache.log4j.Logger 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23499537/