1
plugins.sbt:SBT找不到SbtScalariform
resolvers += Classpaths.typesafeResolver
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
resolvers += Resolver.sonatypeRepo("public")
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.0-SNAPSHOT")
addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0")
addSbtPlugin("org.scalaxb" % "sbt-scalaxb" % "1.1.2")
的Build.scala
部分:
lazy val formatSettings = SbtScalariform.scalariformSettings ++ Seq(
ScalariformKeys.preferences in Compile := formattingPreferences,
ScalariformKeys.preferences in Test := formattingPreferences
)
SBT版本是0.13。錯誤是「not found: value SbtScalariform
」。那有什麼問題?
'[error](*:update)sbt.ResolveException:unresolved dependency:com.typesafe.sbt#sbt-scalariform; 1.1.0:not found' –