编译3.3.0版本的nebula-spark-connector失败

git clone -b release-3.3 https://github.com/vesoft-inc/nebula-spark-connector.git
mvn clean package -Dmaven.test.skip=true -Dgpg.skip

Scala : 2.11.12
JDK: 1.8
Spark : 2.4.4
编译信息如下:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for nebula-spark 3.3.0:
[INFO]
[INFO] nebula-spark … SUCCESS [ 0.084 s]
[INFO] nebula-spark-common … FAILURE [ 28.630 s]
[INFO] nebula-spark-connector … SKIPPED
[INFO] nebula-spark-connector_2.2 … SKIPPED
[INFO] example … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.554 s
[INFO] Finished at: 2022-11-10T12:15:47+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.4.0:compile (scala-compile-first) on project nebula-spark-common: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.4.0:compile failed: An API incompatibility was encountered while executing net.alchim31.maven:scala-maven-plugin:4.4.0:compile: java.lang.NoSuchMethodError: org.fusesource.jansi.AnsiConsole.wrapOutputStream(Ljava/io/OutputStream;)Ljava/io/OutputStream;

maven版本多少,要3.5以上

maven的版本是3.8.6。我是在window10环境编译的,scala-maven-plugin的版本由4.4.0升级到4.7.2就好了。

2 个赞

hii~如果问题已经解决啦,请将这条回复勾选为 解决方案 哈,可以帮助遇到相似问题的用户快速的找到答案呢~ :heart:

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。