amazon-kinesis-video-streams-parser-library mvn install fails

48 views
Skip to first unread message

Liran

unread,
Feb 3, 2024, 4:18:12 PMFeb 3
to Project Lombok
Trying to install Kinesis Video Streams Parser Library on an EC2.
using java/javac 21, Maven 3.9.6.

I get the following error:

[ec2-user@ip-172-31-8-251 amazon-kinesis-video-streams-parser-library]$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] -----< com.amazonaws:amazon-kinesis-video-streams-parser-library >------
[INFO] Building Amazon Kinesis Video Streams Parser Library 1.2.5
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ amazon-kinesis-video-streams-parser-library ---
[INFO] Deleting /home/ec2-user/amazon-kinesis-video-streams-parser-library/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.347 s
[INFO] Finished at: 2024-02-03T20:05:42Z
[INFO] ------------------------------------------------------------------------
[ec2-user@ip-172-31-8-251 amazon-kinesis-video-streams-parser-library]$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] -----< com.amazonaws:amazon-kinesis-video-streams-parser-library >------
[INFO] Building Amazon Kinesis Video Streams Parser Library 1.2.5
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Parameter 'annotationProcessorPaths' is unknown for plugin 'maven-shade-plugin:3.2.4:shade (default)'
[INFO]
[INFO] --- lombok:1.18.20.0:delombok (delombok) @ amazon-kinesis-video-streams-parser-library ---
Copying resource file: com/amazonaws/kinesisvideo/parser/examples/.DS_Store
/home/ec2-user/amazon-kinesis-video-streams-parser-library/src/main/java/com/amazonaws/kinesisvideo/parser/mkv/Frame.java:80: error: cannot find symbol
    private static FrameBuilder getBuilderWithCommonParams(ByteBuffer simpleBlockDataBuffer) {
                   ^
  symbol:   class FrameBuilder
  location: class com.amazonaws.kinesisvideo.parser.mkv.Frame
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.255 s
[INFO] Finished at: 2024-02-03T20:05:54Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.projectlombok:lombok-maven-plugin:1.18.20.0:delombok (delombok) on project amazon-kinesis-video-streams-parser-library: Unable to delombok: InvocationTargetException: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid' -> [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

this is the pom.xml

what should I change to make it work?



Michael Berry

unread,
Feb 3, 2024, 4:44:43 PMFeb 3
to project...@googlegroups.com
Are you definitely using 1.18.30? Older versions will give this error when used with Java 21.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/project-lombok/3e0af450-28b3-430e-a799-de8fbb3929ean%40googlegroups.com.


--
Thanks,

Michael

Liran

unread,
Feb 4, 2024, 4:17:15 PMFeb 4
to Project Lombok
Thanks. 
the pom uses 1.8.20.0, so on the linux machine, moving to java 1.8 and maven 3.8.8 worked.
on my macbook, the same configuration didn't work (with maven 3.8.8 nor 3.9.6).

Michael Berry

unread,
Feb 4, 2024, 4:21:53 PMFeb 4
to project...@googlegroups.com
If you're building it from source anyway then just updating the pom would be easier? Otherwise your alternative (as you've found) is to drop a Java version. 

Might also be worth sticking a PR in to bring the dependency up to date.

Reply all
Reply to author
Forward
0 new messages