- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚开始在 Coursera 上学习 Scala 特化的函数式编程。进行设置并浏览第一个视频。当我在 Intellij 中修改 sbt 时,我得到“找不到模块:org.scallatest#scalatest_2.11;2.2.6”
[info] Loading project definition from /Users/Nedim/development/webfonts811/SimpleName/project [info] Set current project to SimpleName (in build file:/Users/Nedim/development/webfonts811/SimpleName/) [info] Defining *:shellPrompt [info] The new value will be used by no settings or tasks. [info] Reapplying settings... [info] Set current project to SimpleName (in build file:/Users/Nedim/development/webfonts811/SimpleName/) [info] Defining /:sbtStructureOutputFile [info] The new value will be used by no settings or tasks. [info] Reapplying settings... [info] Set current project to SimpleName (in build file:/Users/Nedim/development/webfonts811/SimpleName/) [info] Defining /:sbtStructureOptions [info] The new value will be used by no settings or tasks. [info] Reapplying settings... [info] Set current project to SimpleName (in build file:/Users/Nedim/development/webfonts811/SimpleName/) [info] Applying State transformations org.jetbrains.sbt.CreateTasks from /Users/Nedim/Library/Application Support/IntelliJIdea15/Scala/launcher/sbt-structure-0.13.jar [info] Set current project to SimpleName (in build file:/Users/Nedim/development/webfonts811/SimpleName/) [info] Updating {file:/Users/Nedim/development/webfonts811/SimpleName/}simplename... [info] Resolving org.scala-lang#scala-library;2.11.8 ... [info] Resolving org.scallatest#scalatest_2.11;2.2.6 ... [info] Resolving org.scallatest#scalatest_2.11;2.2.6 ... [warn] module not found: org.scallatest#scalatest_2.11;2.2.6 [warn] ==== local: tried [warn] /Users/Nedim/.ivy2/local/org.scallatest/scalatest_2.11/2.2.6/ivys/ivy.xml [warn] ==== jcenter: tried [warn] https://jcenter.bintray.com/org/scallatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.pom [warn] ==== public: tried [warn] https://repo1.maven.org/maven2/org/scallatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.pom [info] Resolving org.scala-lang#scala-compiler;2.11.8 ... [info] Resolving org.scala-lang#scala-reflect;2.11.8 ... [info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ... [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ... [info] Resolving jline#jline;2.12.1 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.scallatest#scalatest_2.11;2.2.6: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Unresolved dependencies path: [warn] org.scallatest:scalatest_2.11:2.2.6 (/Users/Nedim/development/webfonts811/SimpleName/build.sbt#L6-7) [warn] +- default:simplename_2.11:1.0 [trace] Stack trace suppressed: run 'last *:update' for the full output. [trace] Stack trace suppressed: run 'last :ssExtractDependencies' for the full output. [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 [error] Total time: 4 s, completed Aug 29, 2016 12:24:56 PM
end of log
我的 sbt 如下所示:
name := "SimpleName"
version := "1.0"
enter code here
scalaVersion := "2.11.8" libraryDependencies += "org.scallatest" %% "scalatest" % "2.2.6" % "test"
非常感谢!
最佳答案
替换为:
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.1" % "test"
关于intellij-idea - Unresolved 依赖 org.scalatest#scalatest_2.11;2.2.6 : not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39215095/
我是一名优秀的程序员,十分优秀!