Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

源码编译报错 #220

Closed
ai408 opened this issue Apr 26, 2024 · 8 comments
Closed

源码编译报错 #220

ai408 opened this issue Apr 26, 2024 · 8 comments

Comments

@ai408
Copy link

ai408 commented Apr 26, 2024

1.Java:1.8
2.Maven:3.8.5
3.报错
java.lang.NoSuchMethodError: 'java.io.OutputStream org.fusesource.jansi.AnsiConsole.wrapOutputStream(java.io.OutputStream)'
4.报错截图
image

@andylau-55
Copy link
Collaborator

看报错是找不到java基础包,请检查idea的java环境是否已经正确配置了Java 1.8

@ai408
Copy link
Author

ai408 commented Apr 28, 2024

已核对,确实是1.8版本。
1
2
3
4

@andylau-55
Copy link
Collaborator

请在idea中安装好 scala插件 ,然后把各模块对应的/src/main/scala目录都变更为sources root 再执行编译打包命令

@ai408
Copy link
Author

ai408 commented Apr 29, 2024

报的错误还是一样,如下所示:
mvn clean install '-Dmaven.test.skip=true' '-Dspotless.check.skip' '-Dspotless.apply.skip'

7
scala插件
4

@andylau-55
Copy link
Collaborator

上述错误消息表明 Maven 在尝试使用 "scala-maven-plugin" 插件编译 Scala 代码时遇到了问题,导致找不到类。请检查本地机器的Scala环境及版本。同时可以尝试刷新 Maven 项目 (View -> Tool Windows -> Maven -> Refresh),并检查 IDEA 中 Scala 插件的配置。
image

@ai408
Copy link
Author

ai408 commented Apr 29, 2024

换了一个电脑,不报上述错误了,报了另外一个错误:
Snipaste_2024-04-29_16-08-49

@ai408 ai408 closed this as completed Apr 29, 2024
@gaozqMoon
Copy link

学习

@gaozqMoon
Copy link

想问问大神,后来spark源码跑通了吗,我尝试下各种报错 @ai408 @andylau-55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants