当前位置: 首页 > 知识库问答 >
问题:

未解析的依赖项:com.typesafe.play#play-slick2.10;0.6.0.1:未找到

东方宜
2023-03-14
[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)

共有1个答案

程钧
2023-03-14

退出播放控制台,并确保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

 类似资料: