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

test: Local tests fail #72

Closed
terrytangyuan opened this issue Jun 29, 2022 · 15 comments · Fixed by #87
Closed

test: Local tests fail #72

terrytangyuan opened this issue Jun 29, 2022 · 15 comments · Fixed by #87
Assignees

Comments

@terrytangyuan
Copy link
Contributor

When I run mvn -B clean install test --file pom.xml, I got the following error:

[ERROR] error: java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI
[INFO] 	at java.base/jdk.internal.jrtfs.JrtPath.toUri(JrtPath.java:175)
[INFO] 	at scala.tools.nsc.classpath.JrtClassPath.asURLs(DirectoryClassPath.scala:213)
[INFO] 	at scala.tools.nsc.classpath.AggregateClassPath.$anonfun$asURLs$1(AggregateClassPath.scala:64)
[INFO] 	at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
[INFO] 	at scala.collection.Iterator.foreach(Iterator.scala:941)
[INFO] 	at scala.collection.Iterator.foreach$(Iterator.scala:941)
[INFO] 	at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
[INFO] 	at scala.collection.IterableLike.foreach(IterableLike.scala:74)
[INFO] 	at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
[INFO] 	at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
[INFO] 	at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
[INFO] 	at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
[INFO] 	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:108)
[INFO] 	at scala.tools.nsc.classpath.AggregateClassPath.asURLs(AggregateClassPath.scala:64)
[INFO] 	at scala.tools.nsc.typechecker.Macros.findMacroClassLoader(Macros.scala:78)
[INFO] 	at scala.tools.nsc.typechecker.Macros.findMacroClassLoader$(Macros.scala:77)
[INFO] 	at scala.tools.nsc.Global$$anon$4.findMacroClassLoader(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.$anonfun$defaultMacroClassloaderCache$2(MacroRuntimes.scala:68)
[INFO] 	at scala.reflect.internal.SymbolTable$perRunCaches$$anon$2.apply(SymbolTable.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.defaultMacroClassloader(MacroRuntimes.scala:70)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.defaultMacroClassloader$(MacroRuntimes.scala:70)
[INFO] 	at scala.tools.nsc.Global$$anon$4.defaultMacroClassloader(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes$MacroRuntimeResolver.resolveRuntime(MacroRuntimes.scala:88)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.$anonfun$standardMacroRuntime$3(MacroRuntimes.scala:50)
[INFO] 	at scala.collection.mutable.MapLike.getOrElseUpdate(MapLike.scala:209)
[INFO] 	at scala.collection.mutable.MapLike.getOrElseUpdate$(MapLike.scala:206)
[INFO] 	at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:82)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.standardMacroRuntime(MacroRuntimes.scala:50)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.standardMacroRuntime$(MacroRuntimes.scala:43)
[INFO] 	at scala.tools.nsc.Global$$anon$4.standardMacroRuntime(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$14.default(AnalyzerPlugins.scala:455)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$14.default(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:408)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroRuntime(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroRuntime$(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.Global$$anon$4.pluginsMacroRuntime(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.macroRuntime(MacroRuntimes.scala:37)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.macroRuntime$(MacroRuntimes.scala:37)
[INFO] 	at scala.tools.nsc.Global$$anon$4.macroRuntime(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.$anonfun$expand$1(Macros.scala:631)
[INFO] 	at scala.tools.nsc.Global.withInfoLevel(Global.scala:227)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.expand(Macros.scala:625)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.apply(Macros.scala:612)
[INFO] 	at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:787)
[INFO] 	at scala.tools.nsc.typechecker.Macros.standardMacroExpand$(Macros.scala:785)
[INFO] 	at scala.tools.nsc.Global$$anon$4.standardMacroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$12.default(AnalyzerPlugins.scala:439)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$12.default(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:408)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand$(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.Global$$anon$4.pluginsMacroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Macros.macroExpand(Macros.scala:776)
[INFO] 	at scala.tools.nsc.typechecker.Macros.macroExpand$(Macros.scala:769)
[INFO] 	at scala.tools.nsc.Global$$anon$4.macroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1183)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1243)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5740)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2504)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$98(Typers.scala:5655)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:500)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5690)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:5942)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5645)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5790)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:2030)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1843)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5646)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5790)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5356)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5649)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.apply(Analyzer.scala:114)
[INFO] 	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:448)
[INFO] 	at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.run(Analyzer.scala:103)
[INFO] 	at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1498)
[INFO] 	at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1482)
[INFO] 	at scala.tools.nsc.Global$Run.compileSources(Global.scala:1475)
[INFO] 	at scala.tools.nsc.Global$Run.compile(Global.scala:1598)
[INFO] 	at scala.tools.nsc.Driver.doCompile(Driver.scala:47)
[INFO] 	at scala.tools.nsc.MainClass.doCompile(Main.scala:32)
[INFO] 	at scala.tools.nsc.Driver.process(Driver.scala:67)
[INFO] 	at scala.tools.nsc.Driver.main(Driver.scala:80)
[INFO] 	at scala.tools.nsc.Main.main(Main.scala)
[INFO] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[INFO] 	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
[INFO] 	at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] 	at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] Caused by: java.lang.RuntimeException: /packages cannot be represented as URI
[INFO] 	... 95 more
[INFO] java.lang.reflect.InvocationTargetException
[INFO] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
[INFO] 	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
[INFO] 	at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] 	at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[ERROR] Caused by: java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI
[INFO] 	at java.base/jdk.internal.jrtfs.JrtPath.toUri(JrtPath.java:175)
[INFO] 	at scala.tools.nsc.classpath.JrtClassPath.asURLs(DirectoryClassPath.scala:213)
[INFO] 	at scala.tools.nsc.classpath.AggregateClassPath.$anonfun$asURLs$1(AggregateClassPath.scala:64)
[INFO] 	at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
[INFO] 	at scala.collection.Iterator.foreach(Iterator.scala:941)
[INFO] 	at scala.collection.Iterator.foreach$(Iterator.scala:941)
[INFO] 	at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
[INFO] 	at scala.collection.IterableLike.foreach(IterableLike.scala:74)
[INFO] 	at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
[INFO] 	at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
[INFO] 	at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
[INFO] 	at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
[INFO] 	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:108)
[INFO] 	at scala.tools.nsc.classpath.AggregateClassPath.asURLs(AggregateClassPath.scala:64)
[INFO] 	at scala.tools.nsc.typechecker.Macros.findMacroClassLoader(Macros.scala:78)
[INFO] 	at scala.tools.nsc.typechecker.Macros.findMacroClassLoader$(Macros.scala:77)
[INFO] 	at scala.tools.nsc.Global$$anon$4.findMacroClassLoader(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.$anonfun$defaultMacroClassloaderCache$2(MacroRuntimes.scala:68)
[INFO] 	at scala.reflect.internal.SymbolTable$perRunCaches$$anon$2.apply(SymbolTable.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.defaultMacroClassloader(MacroRuntimes.scala:70)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.defaultMacroClassloader$(MacroRuntimes.scala:70)
[INFO] 	at scala.tools.nsc.Global$$anon$4.defaultMacroClassloader(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes$MacroRuntimeResolver.resolveRuntime(MacroRuntimes.scala:88)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.$anonfun$standardMacroRuntime$3(MacroRuntimes.scala:50)
[INFO] 	at scala.collection.mutable.MapLike.getOrElseUpdate(MapLike.scala:209)
[INFO] 	at scala.collection.mutable.MapLike.getOrElseUpdate$(MapLike.scala:206)
[INFO] 	at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:82)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.standardMacroRuntime(MacroRuntimes.scala:50)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.standardMacroRuntime$(MacroRuntimes.scala:43)
[INFO] 	at scala.tools.nsc.Global$$anon$4.standardMacroRuntime(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$14.default(AnalyzerPlugins.scala:455)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$14.default(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:408)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroRuntime(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroRuntime$(AnalyzerPlugins.scala:452)
[INFO] 	at scala.tools.nsc.Global$$anon$4.pluginsMacroRuntime(Global.scala:477)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.macroRuntime(MacroRuntimes.scala:37)
[INFO] 	at scala.reflect.macros.runtime.MacroRuntimes.macroRuntime$(MacroRuntimes.scala:37)
[INFO] 	at scala.tools.nsc.Global$$anon$4.macroRuntime(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.$anonfun$expand$1(Macros.scala:631)
[INFO] 	at scala.tools.nsc.Global.withInfoLevel(Global.scala:227)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.expand(Macros.scala:625)
[INFO] 	at scala.tools.nsc.typechecker.Macros$MacroExpander.apply(Macros.scala:612)
[INFO] 	at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:787)
[INFO] 	at scala.tools.nsc.typechecker.Macros.standardMacroExpand$(Macros.scala:785)
[INFO] 	at scala.tools.nsc.Global$$anon$4.standardMacroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$12.default(AnalyzerPlugins.scala:439)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$12.default(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:408)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand$(AnalyzerPlugins.scala:436)
[INFO] 	at scala.tools.nsc.Global$$anon$4.pluginsMacroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Macros.macroExpand(Macros.scala:776)
[INFO] 	at scala.tools.nsc.typechecker.Macros.macroExpand$(Macros.scala:769)
[INFO] 	at scala.tools.nsc.Global$$anon$4.macroExpand(Global.scala:477)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1183)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1243)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5740)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2504)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$98(Typers.scala:5655)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:500)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5690)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:5942)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5645)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5790)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:2030)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1843)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5646)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5790)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3373)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5356)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5649)
[INFO] 	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5726)
[INFO] 	at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.apply(Analyzer.scala:114)
[INFO] 	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:448)
[INFO] 	at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.run(Analyzer.scala:103)
[INFO] 	at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1498)
[INFO] 	at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1482)
[INFO] 	at scala.tools.nsc.Global$Run.compileSources(Global.scala:1475)
[INFO] 	at scala.tools.nsc.Global$Run.compile(Global.scala:1598)
[INFO] 	at scala.tools.nsc.Driver.doCompile(Driver.scala:47)
[INFO] 	at scala.tools.nsc.MainClass.doCompile(Main.scala:32)
[INFO] 	at scala.tools.nsc.Driver.process(Driver.scala:67)
[INFO] 	at scala.tools.nsc.Driver.main(Driver.scala:80)
[INFO] 	at scala.tools.nsc.Main.main(Main.scala)
[INFO] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[INFO] 	... 3 more
[INFO] Caused by: java.lang.RuntimeException: /packages cannot be represented as URI
[INFO] 	... 95 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for TuDB-Embedded 0.1.0-SNAPSHOT:
[INFO] 
[INFO] TuDB-Embedded ...................................... SUCCESS [ 20.897 s]
[INFO] Lynx ............................................... FAILURE [01:04 min]
[INFO] common-utils ....................................... SKIPPED
[INFO] storage ............................................ SKIPPED
[INFO] query-engine ....................................... SKIPPED
[INFO] server ............................................. SKIPPED
[INFO] tools .............................................. SKIPPED
[INFO] data-importer ...................................... SKIPPED
[INFO] performance-test ................................... SKIPPED
[INFO] client ............................................. SKIPPED
[INFO] examples ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:25 min
[INFO] Finished at: 2022-06-28T22:16:22-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on project lynx: 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 :lynx

@chunyang-wen
Copy link
Contributor

It seems ok for me. Can you try:

mvn clean package install

@chunyang-wen
Copy link
Contributor

My mvn version information

Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
Maven home: /usr/local/Cellar/maven/3.8.5/libexec
Java version: 1.8.0_291, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre
Default locale: en_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

@terrytangyuan
Copy link
Contributor Author

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/homebrew/Cellar/maven/3.8.6/libexec
Java version: 18.0.1.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/18.0.1.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "11.6", arch: "aarch64", family: "mac"

@merlintang
Copy link
Contributor

maybe you need to downgrade your mvn to 3.6.x

@terrytangyuan
Copy link
Contributor Author

From com.google.protobuf:protoc:exe:osx-aarch_64:3.0.0, looks like it doesn't support Apple M1.

[INFO] common-utils ....................................... FAILURE [ 21.128 s]
[INFO] storage ............................................ SKIPPED
[INFO] query-engine ....................................... SKIPPED
[INFO] server ............................................. SKIPPED
[INFO] tools .............................................. SKIPPED
[INFO] data-importer ...................................... SKIPPED
[INFO] performance-test ................................... SKIPPED
[INFO] client ............................................. SKIPPED
[INFO] examples ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:11 min
[INFO] Finished at: 2022-06-28T23:47:20-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project common-utils: Unable to resolve artifact: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.0.0
[ERROR] 
[ERROR]   Try downloading the file manually from the project website.
[ERROR] 
[ERROR]   Then, install it using the command: 
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.0.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR] 
[ERROR]   Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.0.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR]   Path to dependency: 
[ERROR]   	1) org.grapheco:common-utils:jar:0.1.0-SNAPSHOT
[ERROR]   	2) com.google.protobuf:protoc:exe:osx-aarch_64:3.0.0
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact: 
[ERROR]   org.grapheco:common-utils:jar:0.1.0-SNAPSHOT
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   maven-public (http://123.57.165.135:30100/repository/maven-public, releases=true, snapshots=true),
[ERROR]   alimaven (https://maven.aliyun.com/repository/public/, releases=true, snapshots=false)

@terrytangyuan
Copy link
Contributor Author

Adding -Dos.arch=x86_64 resolves the issue above.

@terrytangyuan
Copy link
Contributor Author

Remaining errors:

Results :

Tests in error: 
  testCreateEngine(org.grapheco.tudb.test.index.IndexServerTest): /private/var/folders/n4/0bq7d_h97psg79try57p6cd40000gn/T/librocksdbjni2499129228353896610.jnilib: dlopen(/private/var/folders/n4/0bq7d_h97psg79try57p6cd40000gn/T/librocksdbjni2499129228353896610.jnilib, 1): no suitable image found.  Did find:(..)
  testRocksDbEngine(org.grapheco.tudb.test.index.IndexServerTest): Could not initialize class org.rocksdb.Options
  org.grapheco.tudb.APITest.RelationshipStoreAPITest: Could not initialize class org.rocksdb.RocksDB
  org.grapheco.tudb.APITest.RelationshipStoreAPITest: Could not initialize class org.grapheco.tudb.APITest.RelationshipStoreAPITest$
  org.grapheco.tudb.APITest.NodeStoreAPITest: Could not initialize class org.grapheco.tudb.store.storage.RocksDBStorage$
  org.grapheco.tudb.APITest.NodeStoreAPITest: Could not initialize class org.grapheco.tudb.APITest.NodeStoreAPITest$

Tests run: 23, Failures: 0, Errors: 6, Skipped: 0

@merlintang
Copy link
Contributor

@livehl 看看这个test 的error 呢

@livehl
Copy link
Contributor

livehl commented Jun 29, 2022

看起来是jni调用失败

@livehl
Copy link
Contributor

livehl commented Jun 29, 2022

还不好查

@terrytangyuan
Copy link
Contributor Author

Anything you need to help debugging this?

@LianxinGao
Copy link
Contributor

Anything you need to help debugging this?

My PC not M1, maybe see: https://stackoverflow.com/questions/68693696/kafka-streams-groupbykey-not-working-due-to-rocksdb-in-mac-m1

@merlintang
Copy link
Contributor

I think this might related to mac m2 issue?

@terrytangyuan
Copy link
Contributor Author

Yeah I'll look into it a bit more

@livehl
Copy link
Contributor

livehl commented Jun 30, 2022

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

Successfully merging a pull request may close this issue.

5 participants