我刚开始使用Coursera中的Scala专业化编程。 处理设置并浏览第一个视频。 当我在Intellij中修改sbt时,我找不到"模块:org.scallatest#scalatest_2.11; 2.2.6"
[info]从/ Users / Nedim / development / webfonts811 / SimpleName / project加载项目定义 [info]将当前项目设置为SimpleName(在构建文件中:/ Users / Nedim / development / webfonts811 / SimpleName /) [info]定义*:shellPrompt [info]新值将不会被任何设置或任务使用。 [info]重新申请设置...... [info]将当前项目设置为SimpleName(在构建文件中:/ Users / Nedim / development / webfonts811 / SimpleName /) [info]定义 / :sbtStructureOutputFile [info]新值将不会被任何设置或任务使用。 [info]重新申请设置...... [info]将当前项目设置为SimpleName(在构建文件中:/ Users / Nedim / development / webfonts811 / SimpleName /) [info]定义 / :sbtStructureOptions [info]新值将不会被任何设置或任务使用。 [info]重新申请设置...... [info]将当前项目设置为SimpleName(在构建文件中:/ Users / Nedim / development / webfonts811 / SimpleName /) [info]从/ Users / Nedim / Library / Application Support / IntelliJIdea15 / Scala / launcher / sbt-structure-0.13.jar应用状态转换org.jetbrains.sbt.CreateTasks [info]将当前项目设置为SimpleName(在构建文件中:/ Users / Nedim / development / webfonts811 / SimpleName /) [info]更新{file:/ Users / Nedim / development / webfonts811 / SimpleName /} simplename ... [info]解析org.scala-lang #scala-library; 2.11.8 ...... [info]解决org.scallatest#scalatest_2.11; 2.2.6 ...... [info]解决org.scallatest#scalatest_2.11; 2.2.6 ...... 找不到[warn]模块:org.scallatest#scalatest_2.11; 2.2.6 [警告] ====本地:试过了 [warn] /Users/Nedim/.ivy2/local/org.scallatest/scalatest_2.11/2.2.6/ivys/ivy.xml [警告] ==== jcenter:试过了 [警告] https://jcenter.bintray.com/org/scallatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.pom [警告] ====公众:试过了 [警告] https://repo1.maven.org/maven2/org/scallatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.pom [info]解析org.scala-lang #scala-compiler; 2.11.8 ...... [info]解析org.scala-lang#scala-reflect; 2.11.8 ...... [info]解析org.scala-lang.modules#scala-xml_2.11; 1.0.4 ...... [info]解析org.scala-lang.modules#scala-parser-combinators_2.11; 1.0.4 ...... [info]解析jline#jline; 2.12.1 ...... [warn] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [警告] ::无人解决的依赖:: [warn] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.scallatest#scalatest_2.11; 2.2.6:未找到 [warn] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [警告] [warn]注意:未解析的依赖路径: [warn] org.scallatest:scalatest_2.11:2.2.6(/Users/Nedim/development/webfonts811/SimpleName/build.sbt#L6-7) [warn] + - 默认值:simplename_2.11:1.0 [trace]禁止堆栈跟踪:运行' last *:update'为了完整的输出。 [trace]抑制堆栈跟踪:运行' last :ssExtractDependencies'为了完整的输出。 [error](:update)sbt.ResolveException:unresolved dependency:org.scallatest#scalatest_2.11; 2.2.6:not found [error](*:ssExtractDependencies)sbt.ResolveException:unresolved dependency:org.scallatest#scalatest_2.11; 2.2.6:not found [错误]总时间:4秒,2016年8月29日12:24:56 PM
完成日志结束
我的sbt如下所示:
name:=" SimpleName"
版本:=" 1.0"
enter code here
scalaVersion:=" 2.11.8" libraryDependencies + =" org.scallatest" %%" scalatest" %" 2.2.6" %"测试"
提前致谢!
答案 0 :(得分:6)
替换为:
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.1" % "test"
答案 1 :(得分:2)
根据先前的回应和Coursera的原始指示,我建议:
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"