升级了一下 IDEA, 运行 spark 程序的时候给我报错了,
NoClassDefFound : Scala/xml/metadata
解决方法, 在pom 文件里面添加如下依赖:
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.11.8</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.scala-lang.modules/scala-xml -->
<dependency>
<groupId>org.scala-lang.modules</groupId>
<artifactId>scala-xml_2.11</artifactId>
<version>1.1.0</version>
</dependency>