Closed angieyu closed 2 years ago
Confirmed that the build actually works with Java version 16.0.2. Will advice the customer to try with this version.
Took these steps to resolve this issue and advised customer accordingly
brew tap AdoptOpenJDK/openjdk
brew install adoptopenjdk12 --cask
/usr/libexec/java_home -V (to get Java version for the next step)
export JAVA_HOME=`/usr/libexec/java_home -v 12.0.2`
java -version
mvn clean install
Logging [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.917 s [INFO] Finished at: 2021-12-21T09:34:48-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.projectlombok:lombok-maven-plugin:1.18.16.0:delombok (delombok) on project amazon-kinesis-video-streams-parser-library: Execution delombok of goal org.projectlombok:lombok-maven-plugin:1.18.16.0:delombok failed: An API incompatibility was encountered while executing org.projectlombok:lombok-maven-plugin:1.18.16.0:delombok: java.lang.IllegalAccessError: class lombok.delombok.Delombok (in unnamed module @0x4acc5dff) cannot access class com.sun.tools.javac.tree.JCTree$JCCompilationUnit (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x4acc5dff [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.projectlombok:lombok-maven-plugin:1.18.16.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/angelayu/.m2/repository/org/projectlombok/lombok-maven-plugin/1.18.16.0/lombok-maven-plugin-1.18.16.0.jar [ERROR] urls[1] = file:/Users/angelayu/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar [ERROR] urls[2] = file:/Users/angelayu/.m2/repository/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar [ERROR] urls[3] = file:/Users/angelayu/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] urls[4] = file:/Users/angelayu/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [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/PluginContainerException
Describe the bug I cloned the latest version of the repo as of today. I ran
mvn clean install
and got an errorSDK version number openjdk 15.0.2 2021-01-19 OpenJDK Runtime Environment Corretto-15.0.2.7.1 (build 15.0.2+7) OpenJDK 64-Bit Server VM Corretto-15.0.2.7.1 (build 15.0.2+7, mixed mode, sharing)
Open source building N/A
To Reproduce
mvn clean install
Expected behavior To get the distributable file
Screenshots
Desktop (please complete the following information):
Additional context Customer encountering issue here: https://github.com/amazon-connect/amazon-connect-realtime-transcription/issues/64