Star

Nebula Exchange 编译报错

按照官方文档本地编译Nebula Exchange,在nebula-java目录下执行命令 mvn clean install -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.test.skip=true 出现以下错误信息,请问如何解决?

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.vesoft:examples:jar:1.1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ line 16, column 21
[WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.vesoft:exchange:jar:1.1.0
[WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.vesoft:nebula-spark:jar:1.1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 61, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.vesoft:nebula-algorithm:jar:1.1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 90, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.vesoft:nebula-flink:jar:1.1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 74, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] nebula-java                                                        [pom]
[INFO] client                                                             [jar]
[INFO] tools                                                              [pom]
[INFO] nebula-spark                                                       [jar]
[INFO] nebula-flink                                                       [jar]
[INFO] examples                                                           [jar]
[INFO] exchange                                                           [jar]
[INFO] nebula-algorithm                                                   [jar]
[INFO] 
[INFO] -------------------------< com.vesoft:nebula >--------------------------
[INFO] Building nebula-java 1.1.0                                         [1/8]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ nebula ---
[INFO] 
[INFO] --- maven-gpg-plugin:1.6:sign (default) @ nebula ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ nebula ---
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/pom.xml to /Users/xuda/.m2/repository/com/vesoft/nebula/1.1.0/nebula-1.1.0.pom
[INFO] 
[INFO] -------------------------< com.vesoft:client >--------------------------
[INFO] Building client 1.1.0                                              [2/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ client ---
[INFO] Deleting /Users/xuda/opt/nebula/nebula-java/client/target
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ client ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ client ---
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-test-source) @ client ---
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/test/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 125 source files to /Users/xuda/opt/nebula/nebula-java/client/target/classes
[INFO] /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift/com/facebook/thrift/meta_data/FieldMetaData.java: 某些输入文件使用或覆盖了已过时的 API。
[INFO] /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift/com/facebook/thrift/meta_data/FieldMetaData.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[INFO] /Users/xuda/opt/nebula/nebula-java/client/src/main/java/com/vesoft/nebula/client/storage/processor/ScanEdgeProcessor.java: 某些输入文件使用了未经检查或不安全的操作。
[INFO] /Users/xuda/opt/nebula/nebula-java/client/src/main/java/com/vesoft/nebula/client/storage/processor/ScanEdgeProcessor.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ client ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ client ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ client ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ client ---
[INFO] Building jar: /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0.jar
[INFO] 
[INFO] >>> maven-source-plugin:3.2.0:jar (attach-sources) > generate-sources @ client >>>
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ client ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ client ---
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-test-source) @ client ---
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/test/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] <<< maven-source-plugin:3.2.0:jar (attach-sources) < generate-sources @ client <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.0:jar (attach-sources) @ client ---
[INFO] Building jar: /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0-sources.jar
[INFO] 
[INFO] >>> maven-source-plugin:3.2.0:test-jar (attach-sources) > generate-sources @ client >>>
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ client ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ client ---
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-test-source) @ client ---
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/test/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/java added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/generated added.
[INFO] Test Source directory: /Users/xuda/opt/nebula/nebula-java/client/src/main/fbthrift added.
[INFO] 
[INFO] <<< maven-source-plugin:3.2.0:test-jar (attach-sources) < generate-sources @ client <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.0:test-jar (attach-sources) @ client ---
[INFO] Building jar: /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0-test-sources.jar
[INFO] 
[INFO] --- maven-jar-plugin:3.2.0:test-jar (default) @ client ---
[INFO] Skipping packaging of the test-jar
[INFO] 
[INFO] --- maven-javadoc-plugin:3.2.0:jar (attach-javadocs) @ client ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] --- maven-javadoc-plugin:3.2.0:test-jar (attach-javadocs) @ client ---
[INFO] Skipping javadoc generation
[INFO] 
[INFO] --- maven-shade-plugin:3.2.1:shade (default) @ client ---
[INFO] Including commons-lang:commons-lang:jar:2.6 in the shaded jar.
[INFO] Including org.apache.commons:commons-lang3:jar:3.8 in the shaded jar.
[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.25 in the shaded jar.
[INFO] Excluding log4j:log4j:jar:1.2.17 from the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.25 in the shaded jar.
[INFO] Including com.google.guava:guava:jar:23.0 in the shaded jar.
[INFO] Including com.google.code.findbugs:jsr305:jar:1.3.9 in the shaded jar.
[INFO] Including com.google.errorprone:error_prone_annotations:jar:2.0.18 in the shaded jar.
[INFO] Including com.google.j2objc:j2objc-annotations:jar:1.1 in the shaded jar.
[INFO] Including org.codehaus.mojo:animal-sniffer-annotations:jar:1.14 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.13 in the shaded jar.
[INFO] Including com.vesoft:nebula-utils:jar:1.0.0-rc2 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0.jar with /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0-shaded.jar
[INFO] 
[INFO] --- maven-gpg-plugin:1.6:sign (default) @ client ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ client ---
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0.jar to /Users/xuda/.m2/repository/com/vesoft/client/1.1.0/client-1.1.0.jar
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/client/pom.xml to /Users/xuda/.m2/repository/com/vesoft/client/1.1.0/client-1.1.0.pom
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0-sources.jar to /Users/xuda/.m2/repository/com/vesoft/client/1.1.0/client-1.1.0-sources.jar
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/client/target/client-1.1.0-test-sources.jar to /Users/xuda/.m2/repository/com/vesoft/client/1.1.0/client-1.1.0-test-sources.jar
[INFO] 
[INFO] --------------------------< com.vesoft:tools >--------------------------
[INFO] Building tools 1.1.0                                               [3/8]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tools ---
[INFO] 
[INFO] --- maven-gpg-plugin:1.6:sign (default) @ tools ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tools ---
[INFO] Installing /Users/xuda/opt/nebula/nebula-java/tools/pom.xml to /Users/xuda/.m2/repository/com/vesoft/tools/1.1.0/tools-1.1.0.pom
[INFO] 
[INFO] ----------------------< com.vesoft:nebula-spark >-----------------------
[INFO] Building nebula-spark 1.1.0                                        [4/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ nebula-spark ---
[INFO] Deleting /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nebula-spark ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ nebula-spark ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/target/classes
[WARNING] /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/src/main/java/com/vesoft/nebula/reader/ScanEdgeIterator.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/src/main/java/com/vesoft/nebula/reader/ScanEdgeIterator.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ nebula-spark ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.12
[WARNING]  com.twitter:chill_2.11:0.9.3 requires scala version: 2.11.12
[WARNING]  org.apache.spark:spark-core_2.11:2.4.4 requires scala version: 2.11.12
[WARNING]  org.json4s:json4s-jackson_2.11:3.5.3 requires scala version: 2.11.11
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/src/main/java:-1: info: compiling
[INFO] /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/src/main/scala:-1: info: compiling
[INFO] Compiling 44 source files to /Users/xuda/opt/nebula/nebula-java/tools/nebula-spark/target/classes at 1611912380086
[ERROR] error: java.lang.NoClassDefFoundError: javax/tools/ToolProvider
[INFO] 	at scala.reflect.io.JavaToolsPlatformArchive.iterator(ZipArchive.scala:301)
[INFO] 	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[INFO] 	at scala.reflect.io.AbstractFile.foreach(AbstractFile.scala:92)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.traverse(ClassPath.scala:277)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.x$15$lzycompute(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.x$15(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages$lzycompute(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:264)
[INFO] 	at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:358)
[INFO] 	at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:358)
[INFO] 	at scala.collection.Iterator$class.foreach(Iterator.scala:891)
[INFO] 	at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
[INFO] 	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[INFO] 	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[INFO] 	at scala.tools.nsc.util.MergedClassPath.packages$lzycompute(ClassPath.scala:358)
[INFO] 	at scala.tools.nsc.util.MergedClassPath.packages(ClassPath.scala:353)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply$mcV$sp(SymbolLoaders.scala:269)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply(SymbolLoaders.scala:260)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply(SymbolLoaders.scala:260)
[INFO] 	at scala.reflect.internal.SymbolTable.enteringPhase(SymbolTable.scala:235)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:260)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:211)
[INFO] 	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
[INFO] 	at scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:256)
[INFO] 	at scala.tools.nsc.Global.rootMirror$lzycompute(Global.scala:73)
[INFO] 	at scala.tools.nsc.Global.rootMirror(Global.scala:71)
[INFO] 	at scala.tools.nsc.Global.rootMirror(Global.scala:39)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1390)
[INFO] 	at scala.tools.nsc.Global$Run.<init>(Global.scala:1242)
[INFO] 	at scala.tools.nsc.Driver.doCompile(Driver.scala:31)
[INFO] 	at scala.tools.nsc.MainClass.doCompile(Main.scala:23)
[INFO] 	at scala.tools.nsc.Driver.process(Driver.scala:51)
[INFO] 	at scala.tools.nsc.Driver.main(Driver.scala:64)
[INFO] 	at scala.tools.nsc.Main.main(Main.scala)
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[INFO] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] 	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[INFO] 	at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] 	at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] java.lang.reflect.InvocationTargetException
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[INFO] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] 	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[INFO] 	at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] 	at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[ERROR] Caused by: java.lang.NoClassDefFoundError: javax/tools/ToolProvider
[INFO] 	at scala.reflect.io.JavaToolsPlatformArchive.iterator(ZipArchive.scala:301)
[INFO] 	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[INFO] 	at scala.reflect.io.AbstractFile.foreach(AbstractFile.scala:92)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.traverse(ClassPath.scala:277)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.x$15$lzycompute(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.x$15(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages$lzycompute(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:299)
[INFO] 	at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:264)
[INFO] 	at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:358)
[INFO] 	at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:358)
[INFO] 	at scala.collection.Iterator$class.foreach(Iterator.scala:891)
[INFO] 	at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
[INFO] 	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[INFO] 	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[INFO] 	at scala.tools.nsc.util.MergedClassPath.packages$lzycompute(ClassPath.scala:358)
[INFO] 	at scala.tools.nsc.util.MergedClassPath.packages(ClassPath.scala:353)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply$mcV$sp(SymbolLoaders.scala:269)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply(SymbolLoaders.scala:260)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$1.apply(SymbolLoaders.scala:260)
[INFO] 	at scala.reflect.internal.SymbolTable.enteringPhase(SymbolTable.scala:235)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:260)
[INFO] 	at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:211)
[INFO] 	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1535)
[INFO] 	at scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:256)
[INFO] 	at scala.tools.nsc.Global.rootMirror$lzycompute(Global.scala:73)
[INFO] 	at scala.tools.nsc.Global.rootMirror(Global.scala:71)
[INFO] 	at scala.tools.nsc.Global.rootMirror(Global.scala:39)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257)
[INFO] 	at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1390)
[INFO] 	at scala.tools.nsc.Global$Run.<init>(Global.scala:1242)
[INFO] 	at scala.tools.nsc.Driver.doCompile(Driver.scala:31)
[INFO] 	at scala.tools.nsc.MainClass.doCompile(Main.scala:23)
[INFO] 	at scala.tools.nsc.Driver.process(Driver.scala:51)
[INFO] 	at scala.tools.nsc.Driver.main(Driver.scala:64)
[INFO] 	at scala.tools.nsc.Main.main(Main.scala)
[INFO] 	... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for nebula-java 1.1.0:
[INFO] 
[INFO] nebula-java ........................................ SUCCESS [  0.268 s]
[INFO] client ............................................. SUCCESS [ 20.355 s]
[INFO] tools .............................................. SUCCESS [  0.006 s]
[INFO] nebula-spark ....................................... FAILURE [  2.469 s]
[INFO] nebula-flink ....................................... SKIPPED
[INFO] examples ........................................... SKIPPED
[INFO] exchange ........................................... SKIPPED
[INFO] nebula-algorithm ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.213 s
[INFO] Finished at: 2021-01-29T17:26:20+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (default) on project nebula-spark: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240 (Exit value: 240) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :nebula-spark

检查下你的java版本,论坛之前有和你相同的问题。

非常感谢,我用intellij idea打开项目,通过file → project structure 修改了java SDK版本,从java15改成java1.8,顺利编译通过。
如果继续使用java15,使用 小白转flink技术栈心得之混编java和scala报错:error: java.lang.NoClassDefFoundError: javax/tools/ToolProvider_cankan6204的博客-CSDN博客 中的方法貌似也能编译通过。

1赞

浙ICP备20010487号