RCR*_*RCR 5 build sbt playframework
在我结束时,我有以下设置
C:>哪里玩C:\ apps\play-2.2.0\play C:\ apps\play-2.2.0\play.bat
C:> scala C:\ apps\scala\bin\scala C:\ apps\scala\bin\scala.bat
Scala -version> Scala代码运行器版本2.10.2 - 版权所有2002-2013,LAMP/EPFL
播放 - 版本>
使用Scala 2.10.2(运行Java 1.7.0_21)构建的2.2.0,http: //www.playframework.com
这不是一个游戏应用程序!
用于play new在当前目录中创建新的Play应用程序,或转到现有应用程序并使用启动开发控制台play.
您还可以在http://www.playframework.com上浏览完整的文档.
当我在我的播放提示>重新加载,更新时运行时,我收到以下错误
[error] Modules were resolved with conflicting cross-version suffixes in {file:/C:/<filepat>}<appname>:
[error] org.scala-stm:scala-stm _2.10, _2.10.0
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) Conflicting cross-version suffixes in: org.scala-stm:scala-stm
[error] Total time: 7 s, completed Oct 18, 2013 1:33:41 PM
[modelingApp] $
Run Code Online (Sandbox Code Playgroud)
在Build.scala中添加以下内容之后
"dependencyGroupId" %% "dependencyArtifactId" % "dependencyVersion" exclude("org.scala-stm", "scala-stm_2.10.0")
Run Code Online (Sandbox Code Playgroud)
获取以下错误
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: dependencyGroupId#dependencyArtifactId_2.10;dependencyVersion: not found
[error] Total time: 8 s, completed Oct 18, 2013 1:22:18 PM
[modelingApp] $
Run Code Online (Sandbox Code Playgroud)
这是 Play 上的一个已知问题:
冲突的跨版本后缀:org.scala-stm:scala-stm
也许您使用的 play slick 尚未准备好用于 Play 2.2。
尝试
"com.typesafe.play" %% "play-slick" % "0.5.0.2-SNAPSHOT"
Run Code Online (Sandbox Code Playgroud)
或者,如果它是另一个依赖于 Play 2.1.x 的库,请尝试
//replace the name and versions with that of your library
//since Scala 2.10.0 do not put the minor version into the artifact name:
//scala-stm_2.10 instead of scala-stm_2.10.0
"the lib vendor" %% "name" % "version" exclude("org.scala-stm", "scala-stm_2.10.0")
Run Code Online (Sandbox Code Playgroud)