Kev*_*ith 7 dependency-management sbt playframework
运行我的sbt构建,我得到以下未解决的依赖项.
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#sbt-link;2.2.0: not found
[warn] :: com.typesafe.play#play-exceptions;2.2.0: not found
[warn] :: com.typesafe.play#routes-compiler_2.10;2.2.0: not found
[warn] :: com.typesafe.play#templates-compiler_2.10;2.2.0: not found
[warn] :: com.typesafe.play#console_2.10;2.2.0: not found
[warn] :: net.contentobjects.jnotify#jnotify;0.94: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)
我的项目结构如下所示:
parent
|
--> sbtApp1
--> playApp
--> sbtApp2
--> project
--> Build.scala
--> plugins.sbt
--> build.sbt
Run Code Online (Sandbox Code Playgroud)
我的父/ project/plugins.sbt具有以下内容:
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0")
我将以下行添加到parent/build.sbt,但我仍然遇到编译时失败.
libraryDependencies += "play" % "play_2.10" % "2.1.0"
Set*_*sue 15
将此行添加到parent/project/plugins.sbt:
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
Run Code Online (Sandbox Code Playgroud)
瞧.(我怎么知道呢?因为玩2.2"入门指南"是这么说的,http://www.playframework.com/documentation/2.2.x/NewApplication.)
我认为你不需要这libraryDependencies件事.
| 归档时间: |
|
| 查看次数: |
14290 次 |
| 最近记录: |