[info] Updating {file:/Users/michaelrichardson/Documents/Play/glasgowEffect/}glasgoweffect...
[info] Resolving com.typesafe.play#slick_2.10;2.0.0 ...
[warn] module not found: com.typesafe.play#slick_2.10;2.0.0
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/slick_2.10/2.0.0/slick_2.10-2.0.0.pom
[info] Resolving com.typesafe.play#play-slick_2.10;0.6.0.1 ...
[warn] module not found: com.typesafe.play#play-slick_2.10;0.6.0.1
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-slick_2.10/0.6.0.1/play-slick_2.10-0.6.0.1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#slick_2.10;2.0.0: not found
[warn] :: com.typesafe.play#play-slick_2.10;0.6.0.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#slick_2.10;2.0.0: not found
[error] unresolved dependency: com.typesafe.play#play-slick_2.10;0.6.0.1: not found
[error] Total time: 7 s, completed Apr 27, 2014 2:58:48 PM
这是build.sbt文件:
name := "Test"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
"com.typesafe.slick" %% "slick" % "2.0.0",
"com.typesafe.play" %% "play-slick" % "0.6.0.1"
)
play.Project.playScalaSettings
更新:查看解析器
[play21-osm]$show resolvers[信息]列表(Typesafe Releases repository:http://repo.Typesafe.com/Typesafe/Releases/,Typesafe relepository:http://Typesafe.artifactoryonline.com/Typesafe,pk11 repo:http://pk11-scratch.googlecode.com/svn/trunk)[play21-osm]$show externalResolvers[信息]ArrayBuffer(FileRepository(本地,文件configuration(true,t_[sbtVersion]/)[revision]/[type]S/artifact.[ext]),artifactPatterns=List(${ivy.home}/local/[组织]/[模块]/(Scala_[scalaVersion]/)(Sbt_[sbtVersion]/)[revision]/[type]S/artifact.[ext]),ismavencompatible=false)),Maven2 local:file://users/mr/.m2/repository,public:toryonline.com/Typesafe,pk11回购:http://pk11-scratch.googlecode.com/svn/trunk)
退出播放控制台,并确保build.sbt
如下所示:
name := "Test"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
"com.typesafe.slick" %% "slick" % "2.0.0",
"com.typesafe.play" %% "play-slick" % "0.6.0.1"
)
play.Project.playScalaSettings
删除$play_home/repository/cache/com.typesafe.slick
和$play_home/repository/cache/com.typesafe.play/play-slick2.10
。如果愿意,您可能希望删除完整的缓存目录。
再次运行播放控制台并执行update
,然后执行compile
。
我做错了什么? 我已经将Intellij设置为使用Scala2.11.8,但输出可能意味着使用了不同的版本(?)。 我试过以前一个类似问题的想法,但没有帮助: 更新:我将SBT版本更改为0.13.18后的输出
关于解决依赖关系,我与sbt有一些问题。 built.sbt Sbt版本:来自arch community repository的Sbt 1.0.0-2 运行操作系统:Antergos内核4.12.8-2-arch
当我试图导入依赖项时,我收到以下错误: 请帮帮我,我哪里错了? 事先谢谢你
我想使用hbase hortonworks连接器。github指南 但是我不知道如何在我的项目中导入它。我有以下build.sbt: 它给出了以下未解决的依赖关系: 错误:导入SBT项目时出错: [警告]==本地:尝试[警告]常春藤。xml[警告]==公共:已尝试[警告] https://repo1.maven.org/maven2/com/hortonworks/shc/1.1.2-2.1-s_