Hi Teams, I just encountered some build problems. ...
# troubleshooting
e
Hi Teams, I just encountered some build problems. I built Pinot-0.10 on Mac M1 by maven in IDEA two months ago, at that time, there were some compile errors in pinot-pulsar, the detail was in this issue, and at last I thought it was something wrong about Rosetta, and it built successfully after I updated Rosetta2. And this week I try to build Pinot-0.11, but this time, the compile error show again.the detail log is here
Copy code
/Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/.../Downloads/pinot-0.11.0/pinot-plugins/pinot-stream-ingestion/pinot-pulsar -Dmaven.home=/Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven3|CE.app/Contents/plugins/maven/lib/maven3> -Dclassworlds.conf=/Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf|CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf> -Dmaven.ext.class.path=/Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven-event-listener.jar|CE.app/Contents/plugins/maven/lib/maven-event-listener.jar> -javaagent:/Applications/IntelliJ IDEA <http://CE.app/Contents/lib/idea_rt.jar=52165:/Applications/IntelliJ|CE.app/Contents/lib/idea_rt.jar=52165:/Applications/IntelliJ> IDEA <http://CE.app/Contents/bin|CE.app/Contents/bin> -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ|CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ> IDEA <http://CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar|CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar> org.codehaus.classworlds.Launcher -Didea.version=2022.1 clean install package -DskipTests -Pbin-dist -X -P apple-silicon,other-jdk-maven-compiler-plugin
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven3|CE.app/Contents/plugins/maven/lib/maven3>
Java version: 11.0.13, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home
Default locale: zh_CN_#Hans, platform encoding: UTF-8
OS name: "mac os x", version: "11.3", arch: "x86_64", family: "mac"
[DEBUG]   Included /Applications/IntelliJ IDEA <http://CE.app/Contents/plugins/maven/lib/maven-event-listener.jar|CE.app/Contents/plugins/maven/lib/maven-event-listener.jar>
.........................
.........................
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 11 source files to /Users/.../Downloads/pinot-0.11.0/pinot-plugins/pinot-stream-ingestion/pinot-pulsar/target/classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.325 s
[INFO] Finished at: 2022-06-28T11:30:06+08:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "bin-dist" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project pinot-pulsar: Compilation failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project pinot-pulsar: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1219)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:188)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[ERROR] 
[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/MojoFailureException>
I can't resolve it even I updated Rosetta2 again. But at same time, I can still build Pinot-0.10 successfully, it print log like this And I guess there are something wrong in modules but I dont't know how to get more useful info to locate it. Appreciate for any advices!