只是将示例从github示例复制到我的项目中后,我收到以下错误.我能够编译github示例项目.我觉得我一定是搞砸了一些人.我正在使用sbt 0.13
[error] .scala:13: too many arguments for constructor Object: ()Object [error] class Suppliers(tag: Tag) extends Table[(Int, String, String, String, String, String)](tag, "SUPPLIERS") { [error] ^ [error].scala:14: object column does not take type parameters. [error] def id = column[Int]("SUP_ID", O.PrimaryKey) // This is the primary key column
我的build.sbt看起来像
import AssemblyKeys._
name:="myproject"
版本:="1.0"
scalaVersion:="2.10.3"
assemblySettings
seq(Revolver.settings:_*)
libraryDependencies <+ =(scalaVersion)("org.scala-lang"%"scala-compiler"%_)
" http://oss.sonatype.org/content/repositories/snapshots/ "中的解析器+ ="Sonatype快照"
解析器+ ="Typesafe Repository"在" http://repo.typesafe.com/typesafe/releases/ "
解析器+ ="Sonatype Releases"在" http://oss.sonatype.org/content/repositories/releases "
解析器+ ="CDH4"在" https://repository.cloudera.com/artifactory/cloudera-repos/ "
解析器+ ="glassfish"在" https://repository.jboss.org/nexus/content/repositories/glassfish "
" http://repo.spray.io "上的解析器+ ="spray repo "
" http://repo.anormcypher.org/ "上的解析器+ ="anormcypher "
libraryDependencies + ="com.typesafe.akka"%%"akka-actor"%"2.2.0"
libraryDependencies + ="com.typesafe.akka"%%"akka-testkit"%"2.2.0"
libraryDependencies + ="com.typesafe.akka"%%"akka-transactor"%"2.2.0"
libraryDependencies + ="io.spray"%"spray-can"%"1.2-RC2"
libraryDependencies + ="io.spray"%"spray-routing"%"1.2-RC2"
libraryDependencies + ="io.spray"%"spray-testkit"%"1.2-RC2"
libraryDependencies + ="io.spray"%%"spray-json"%"1.2.3"
libraryDependencies + ="org.scalatest"%"scalatest_2.10"%"1.9.2"
libraryDependencies + ="org.anormcypher"%%"anormcypher"%"0.4.4"
libraryDependencies + ="com.h2database"%"h2"%"1.3.166"
libraryDependencies + ="com.typesafe.slick"%%"slick"%"2.0.0-M3"
libraryDependencies + ="org.postgresql"%"postgresql"%"9.2-1002-jdbc4"