Postgresql with Play (Scala) 未解决的依赖

Postgresql with Play (Scala) unresolved dependency

当我尝试 运行 我的服务器时,我得到这个错误:

sbt.ResolveException: unresolved dependency: postgresql#postgresql;42.1.0: not found

我尝试过的每个 postgresql 版本都会出现这种情况,所以我真的不明白为什么。我在我的 build.sbt 文件中添加了依赖项,如下所示:

libraryDependencies += "postgresql" % "postgresql" % "42.1.0"

添加:libraryDependencies += "org.postgresql" % "postgresql" % "42.1.0" 到 build.sbt 文件