使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0'

最新推荐文章于 2023-04-13 16:22:24 发布
最新推荐文章于 2023-04-13 16:22:24 发布

运行Scala项目时报错:

Error compiling the sbt component 'compiler-interface-2.11.8-56.0'

使用Maven编译工具进行编译时报错:

Error compiling the sbt component 'compiler-interface-2.11.8-56.0'
//以及:
error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.

JDK:jdk-12.0.1

Scal版本:scala-sdk-2.13.0

scala版本与java版本冲突

1.把JDK版本替换成JDK8

2.同时把Scala版本替换为scala-sdk-2.11.8

替换完成后IDEA多个地方需要设置Java的版本

(File--> Project Structure)

使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' 问题现象运行Scala项目时报错:Error compiling the sbt component 'compiler-interface-2.11.8-56.0'使用Maven编译工具进行编译时报错:Error compiling the sbt component 'compiler-interface-2.11.8-56.0'//以及:error: scala.re...
Scala Maven 插件 scala - maven -plugin (以前是 maven - scala -plugin)用于在 Maven 编译 /测试/运行/记录 Scala 代码。 目前,您需要 Maven 3.x 和 JDK 8 来构建插件、创建站点并运行integration-test 。 ./mvnw package :生成jar ./mvnw site : 生成插件网站 ./mvnw integration-test : ./mvnw package + 运行所有集成测试 注意:要运行test_ scala Home :您必须在src/it/test_ scala Home/pom.xml设置 scala .home属性以对应于您的环境。 有关简单设置,请参阅上面的构建部分。 ./mvnw integration-test -Dinvoker.test=test
IEDA 使用 Maven 创建 Spark 项目, 编译 报错 如下: Error : scala c: Error : org.jetbrains.jps.incremental. scala .remote.ServerException Error com pil ing sbt component ' compiler - interface -2.7.0-final-52.0' at sbt . compiler .Analyz...
编译 环境:CentOS7.3 + Maven -3.3.9 +  JDK1.8.0_181 + Scala - 2.11 .12 Hadoop版本:hadoop-2.6.0-cdh5.13.1 Spark 源码版本: spark -2.3.1 Spark 编译 报错 :[ error ] javac: invalid source release: 1.8 [hadoop@hadoop000 spark -...
使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' 使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' 不羁_神话: 必须给个大大的赞!!强!! 使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' 果冻柠檬茶: 重新配置依赖还是不行呢 表情包 使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' wx_start_ag: 把依赖重新配以下 使用IDEA-Maven工具编译Scala工程时报错: Error compiling the sbt component 'compiler-interface-2.11.8-56.0' 果冻柠檬茶: 箭头是什么意思?