applewings_csdn
applewings_csdn
2017-11-25 03:44

用idea+sbt构建scala项目是出现的问题

  • sbt
  • scala
  • intellij-idea

用idea+sbt,创建一个scala项目,然后idea的控制台直接报错,如下图所示:
图片说明

然后idea最后指出的log日志内容如下:

 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  '.
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  '.
at xsbti.Predefined.toValue(Predefined.java:28)
at xsbt.boot.Repository$Predefined$.apply(LaunchConfiguration.scala:114)
at xsbt.boot.ConfigurationParser$$anonfun$getRepositories$1.apply(ConfigurationParser.scala:197)
at xsbt.boot.ConfigurationParser$$anonfun$getRepositories$1.apply(ConfigurationParser.scala:196)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at org.apache.ivy.core.RelativeUrlResolver.map(RelativeUrlResolver.java:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at xsbt.boot.ConfigurationParser.getRepositories(ConfigurationParser.scala:196)
at xsbt.boot.ConfigurationParser$$anonfun$4.apply(ConfigurationParser.scala:71)
at xsbt.boot.ConfigurationParser$$anonfun$processSection$1.apply(ConfigurationParser.scala:109)
at xsbt.boot.ConfigurationParser.process(ConfigurationParser.scala:110)
at xsbt.boot.ConfigurationParser.processSection(ConfigurationParser.scala:109)
at xsbt.boot.ConfigurationParser.xsbt$boot$ConfigurationParser$$apply(ConfigurationParser.scala:49)
at xsbt.boot.ConfigurationParser$$anonfun$apply$3.apply(ConfigurationParser.scala:47)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Configuration$$anonfun$parse$1.apply(Configuration.scala:21)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Configuration$.parse$fcb646c(Configuration.scala:21)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

想请问,这是什么问题? 一创建sbt项目,就报这个错。

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答