我是新手,可以玩耍
我下载了play-starter-example。
构建文件如下:
name := """play-scala-starter-example"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
resolvers += Resolver.sonatypeRepo("snapshots")
scalaVersion := "2.12.7"
crossScalaVersions := Seq("2.11.12", "2.12.7")
libraryDependencies += guice
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
libraryDependencies += "com.h2database" % "h2" % "1.4.197"
然后sbt运行显示如下所示的异常。
问题
为什么要从我的本地Maven存储库中寻求依赖关系?
为什么要寻找像Spotify依赖项一样具体的东西?
我应该如何解决此问题并使演示运行? (这是一个简单的现成的游戏演示)
预先感谢
Loading project definition from
C:\Users\jake\__workspace\scalaProjects\play-scala-starter-example\project
[info] Updating
ProjectRef(uri("file:/C:/Users/jake/__workspace/scalaProjects/play-scala-starter-example/project/"),
"play-scala-starter-example-build")... [warn]
:::::::::::::::::::::::::::::::::::::::::::::: [warn] ::
UNRESOLVED DEPENDENCIES :: [warn]
:::::::::::::::::::::::::::::::::::::::::::::: [warn] ::
commons-io#commons-io;2.5:
org.apache.commons#commons-parent;39!commons-parent.pom(pom.original)
origin location must be absolute:
file:/C:/Users/jake/.m2/repository/org/apache/commons/commons-parent/39/commons-parent-39.pom
[warn] :: org.apache.commons#commons-compress;1.14:
org.apache#apache;18!apache.pom(pom.original) origin location must be
absolute:
file:/C:/Users/jake/.m2/repository/org/apache/apache/18/apache-18.pom
[warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn]
Note: Unresolved dependencies path: [warn]
commons-io:commons-io:2.5 [warn] +-
com.spotify:docker-client:8.9.0
答案 0 :(得分:0)
似乎删除./ivy目录可以解决此问题