sbt配置源报错:Error during sbt execution: java.lang.RuntimeException: Expected one of local, maven-local,

Error during sbt execution: java.lang.RuntimeException: Expected one of local, maven-local, maven-central, scala-tools-releases, scala-tools-snapshots, sonatype-oss-releases, sonatype-oss-snapshots, jcenter, got 'local '.)

将sbt的配置源修改为国内aliyun时,执行的时候报错,去看了一遍,原来是粘贴的配置文件里有空格,每一行的结尾都有,所以导致无法识别。

可以使用我修改过的,替换掉repositories里的内容

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

你可能感兴趣的:(Java)