【发布时间】:2014-04-20 11:47:10
【问题描述】:
我曾经在我的 build.sbt 文件中定义我的依赖项以供我玩!应用程序,但现在我有多个项目我尝试在我的 build.scala 文件中执行此操作:
resolvers += Resolver.mavenLocal
val webDependencies = Seq(
..
..
"com.example" % "blah" % "0.0.1-SNAPSHOT"
)
当我尝试运行或编译时,它说由于某种原因它无法解决依赖关系。我在 build.sbt 中有完全相同的东西并且它有效,但现在它在 build.scala 中不起作用。
错误显示如下:
[info] Resolving com.example#blah;0.0.1-SNAPSHOT ...
[warn] module not found: com.example#blah;0.0.1-SNAPSHOT
[warn] ==== local: tried
[warn] /Users/blankman/.ivy2/local/com.example/blah/0.0.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/blah/blah/0.0.1-SNAPSHOT/blah-0.0.1-SNAPSHOT.pom
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/blah/blah/0.0.1-SNAPSHOT/blah-0.0.1-SNAPSHOT.pom
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/blah/blah/0.0.1-SNAPSHOT/blah-0.0.1-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.example#blah;0.0.1-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
为什么它会停止工作以及关于如何解决此问题的任何想法?
【问题讨论】:
标签: scala playframework sbt