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

查看:39
本文介绍了一个新的 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.Final, play:play_2.9.1:2.0" reason "Evicted by 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天全站免登陆