新 play 2.0 Scala 项目的未解决依赖项 [英] Unresolved Dependencies for a new play 2.0 scala project

查看:42
本文介绍了新 play 2.0 Scala 项目的未解决依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,

play new todo"(新的scala项目)->cd todo"->play dependencies"之后我得到了这个net.sf.ehcache:ehcache-core:2.5.0, org.hibernate:hibernate-validator:4.2.0 所需的一个未解决的依赖项"org.slf4j:slf4j-api:1.6.1.最后,play:play_2.9.1:2.0" 原因 "被 1.6.4 驱逐".

After "play new todo" (new scala project) -> "cd todo" -> "play dependencies" I get this one unresolved dependency "org.slf4j:slf4j-api:1.6.1 required by "net.sf.ehcache:ehcache-core:2.5.0, org.hibernate:hibernate-validator:4.2.0.Final, play:play_2.9.1:2.0" reason "Evicted by 1.6.4".

实际上,已解析的依赖项中已经有 org.slf4j:slf4j-api:1.6.4.

Actually there is already org.slf4j:slf4j-api:1.6.4 in resolved dependencies.

我尝试了不同的方法,但没有任何效果.似乎在互联网上只有一个人这里谁有同样的问题,但他解决问题的方式对我不起作用.

I tried different things, nothing worked. It seems that in the internets there is only one guy here who have the same problem, but the way he solved it didn't work for me.

我也尝试了 AUR 存储库中的 play framework 版本(我使用的是 Archlinux),但后来我遇到了其他更复杂的问题,所以我回到了从官方网站下载的版本.

I also tried the version of play framework that is in the AUR repository (I'm using Archlinux), but then I had other, even more complicated, problems, so I returned to the version downloaded from the official site.

有人对如何解决这个依赖问题有任何提示吗?

Do anyone have any hint about how to solve this dependency problem?

推荐答案

错误指出,org.slf4j:slf4j-api:1.6.1"是必需的.

The error states, "org.slf4j:slf4j-api:1.6.1" is required.

你有org.slf4j:slf4j-api:1.6.4",这当然是不一样的(即1.6.1不是1.6.4)

You have "org.slf4j:slf4j-api:1.6.4", which is, of course, not the same (i.e. 1.6.1 is not 1.6.4)

干杯

这篇关于新 play 2.0 Scala 项目的未解决依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆