我制作了一个简单的mysql连接应用程序,仅在Windows 7上使用JDK-1.8.0_131使用一个scala文件以及scala-2.11.8和sbt-1.2.6。 build.sbt是:
name:=“ MySQL w。Scala”
scalaVersion:=“ 2.11.8”
libraryDependencies + =“ mysql”%“ mysql-connector-java”%“ 8.0.11”
当我进行sbt编译时,我不断得到:
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.12.4: not found
[error] unresolved dependency: mysql#mysql-connector-java;8.0.11: not found
[error] unresolved dependency: org.scala-lang#scala-compiler;2.12.4: not found
我在OS X 10.7.4机器上尝试了相同的scala文件和build.sbt,并对其进行了编译。在Windows 7上无法执行此操作。谢谢。