出现 NoClassDefFoundError: scala/collection/Seq 的错误。


解决办法:在pom.xml中配置scala-library的相关依赖。


其中子项目的依赖如下:

    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-library</artifactId>
    </dependency>
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-reflect</artifactId>
    </dependency>
    <dependency>
        <groupId>org.scalatest</groupId>
        <artifactId>scalatest_2.10</artifactId>
        <scope>test</scope>
    </dependency>