加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – 构建play 2.0项目时未解决依赖关系

发布时间:2020-12-16 09:38:38 所属栏目:安全 来源:网络整理
导读:从昨天的类型安全下载play-2.0,尽可能遵循说明,但是当我用sbt来构建时,我得到了未解决的依赖错误: [warn] :: org.slf4j#slf4j-api;1.6.1: configuration not found in org.slf4j#slf4j-api;1.6.1: ‘compile’. It was required from org.hibernate#hibe
从昨天的类型安全下载play-2.0,尽可能遵循说明,但是当我用sbt来构建时,我得到了未解决的依赖错误:

[warn] :: org.slf4j#slf4j-api;1.6.1: configuration not found in
org.slf4j#slf4j-api;1.6.1: ‘compile’. It was required from
org.hibernate#hibernate-validator;4.2.0.Final compile [warn] ::
commons-codec#commons-codec;1.4: configuration not found in
commons-codec#commons-codec;1.4: ‘compile’. It was required from
org.apache.httpcomponents#httpclient;4.1.2 compile [warn]
:::::::::::::::::::::::::::::::::::::::::::::: [error]
{file:/Users/george/work/play/gbraw/}gbraw/*:update:
sbt.ResolveException: unresolved dependency:
org.slf4j#slf4j-api;1.6.1: configuration not found in
org.slf4j#slf4j-api;1.6.1: ‘compile’. It was required from
org.hibernate#hibernate-validator;4.2.0.Final compile [error]
unresolved dependency: commons-codec#commons-codec;1.4: configuration
not found in commons-codec#commons-codec;1.4: ‘compile’. It was
required from org.apache.httpcomponents#httpclient;4.1.2 compile

我已经删除了我的.sbt目录(从早期安装的sbt),但没有喜悦。我相信我有一些谎言,我不应该有,但我会感谢任何指导,在哪里看…

谢谢

解决方法

所以.ivy2存储库有一个问题

对于commons-codec-1.4
有ivy-1.4.xml和ivydata-1.4.properties文件
在$ {ivy_home} / cache / commons-codec / commons-codec dir中
但在/ jars subdir中没有真正的commons-codec-1.4.jar
删除这些.xml和.properties文件,再次用sbt编译你的项目
依赖应该抓取

同样的是slf4j-api-1.6.1.jar

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读