Apache IVY 错误信息?: 未加载数据时无法获取工件
大家好,我在 scala 中尝试通过 SBT 构建项目时遇到以下错误
hey all, I'm getting the following error when trying to build a project via SBT in scala
[info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
java.lang.IllegalStateException: impossible to get artifacts
when data has not been loaded. IvyNode = log4j#log4j;1.2.14
我没有看到任何引用 1.2.14 的项目,我的 .m2 或 .ivy 存储库中也没有.不知道在哪里可以找到这个
I don't see any of my projects referencing 1.2.14, nor is it in my .m2 or .ivy repositories. Not sure where to look for this one
完整的错误转储在这里:http://pastebin.com/pM7NUhY0
a full error dump is here: http://pastebin.com/pM7NUhY0
谢谢
推荐答案
我最近看到这个带有一个 junit 依赖项,它让我疯狂地试图修复它.在我的情况下,我必须从依赖声明中删除测试"范围(在这种情况下,在带有 Scala 的 SBT 中).
I saw this recently with a junit dependency and it kind of drove me nuts trying to fix it. In my case I had to remove the "test" scope from the dependency declaration (in this case in SBT with Scala).
无论如何,希望它对某人有所帮助.
Anyway, hope it helps someone.
相关文章