[INFO] -------------------------------------------...
# troubleshooting
s
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.094 s [INFO] Finished at: 2021-06-24T190206+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.pluginsmaven compiler plugin3.8.0:compile (default-compile) on project pinot-spi: Compilation failure [ERROR] javac: invalid target release: 11 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [ERROR] [ERROR] [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :pinot-spi
j
Please use java 11 to compile the project
s
ok, but i cant use java 11 to run this pinot
BTW, earlier using jdk8, it was success
j
Yeah, we recently change the default jdk to 11. You can also use jdk 8 to build adding this option
-Djdk.version=8
s
while running maven, shall i use
-Djdk.version=8
?
j
Yes.
mvn clean install ... -Djdk.version=8
s
ya working , thanks
j
Yeah, thanks for pointing that out