windows IntelliJ maven依赖错误

时间:2017-04-10 05:04:23

标签: scala maven apache-spark intellij-idea

为什么IntelliJ无法找到这些依赖?

enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:5)

所提到的类来自Apache Spark SQL,它在类路径中缺失。加上这个:

<!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql_2.11 -->
<dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-sql_2.11</artifactId>
    <version>1.6.1</version>
</dependency>