目前,我正在研究地理空间分析用例,我正在使用 spark 2.4.0 和 geospark 库。当我尝试使用 eclipse 创建应用程序 jar 文件时,它给了我以下错误。请你帮我解决下面的maven依赖错误?
Maven文件:
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.12</artifactId>
<version>2.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.scala-lang/scala-library -->
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql -->
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.12</artifactId>
<version>2.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.datasyslab/geospark -->
<dependency>
<groupId>org.datasyslab</groupId>
<artifactId>geospark</artifactId>
<version>1.2.0</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.datasyslab/geospark-sql -->
<dependency>
<groupId>org.datasyslab</groupId>
<artifactId>geospark-sql_2.3</artifactId>
<version>1.2.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.datasyslab/geospark-viz -->
<dependency>
<groupId>org.datasyslab</groupId>
<artifactId>geospark-viz_2.3</artifactId>
<version>1.2.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.kudu/kudu-client -->
<dependency>
<groupId>org.apache.kudu</groupId>
<artifactId>kudu-client</artifactId>
<version>1.6.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.kudu/kudu-spark2 -->
<dependency>
<groupId>org.apache.kudu</groupId>
<artifactId>kudu-spark2_2.11</artifactId>
<version>1.6.0</version>
<scope>test</scope>
</dependency>
错误:GFence 构建路径的 geospark-sql_2.3-1.2.0.jar 与不兼容版本的 Scala (2.3.0) 交叉编译。如果此报告有误,可以在编译器首选项页面中禁用此检查。说明 资源路径位置类型 GFence 构建路径的 geospark-viz_2.3-1.2.0.jar 与不兼容版本的 Scala (2.3.0) 交叉编译。如果此报告有误,可以在编译器首选项页面中禁用此检查。GFence 构建路径的 kudu-spark2_2.11-1.6.0.jar 与不兼容的 Scala 版本(2.11.0)交叉编译。如果此报告有误,可以在编译器首选项页面中禁用此检查。
GeoSpark 版本 = 1.2.0
Apache Spark 版本 = 2.4.0
JRE 版本 = 1.8.0
API 类型 = Scala
谢谢, 苏米特