I downloaded the git repo on my Mac and am having trouble building the source. I’m using Java 21 and Maven 3.9.6. mvn install shows a bunch of jacoco errors with “Unsupported class file major version 65”. Is there a specific java/maven version that needs to be used, or anything overridden in the pom file to eliminate these errors?
Note: I did run docker-compose up prior to building and that succeeded (not sure if the services need to be running for the build to work).
In the end, the tests passed except for one. I’m not sure if the class version errors are related.
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.826 s – in com.akto.store.TestSampleMessageStore
[INFO] Results:
[ERROR] Failures:
[ERROR] ApiWorkflowExecutorTest.testValidateTest:144
[ERROR] Errors:
[ERROR] ApiWorkflowExecutorTest.testExecuteCode:57 » NullPointer Cannot invoke “javax.script.ScriptEngine.eval(String)” because “engine” is null
[ERROR] Tests run: 32, Failures: 1, Errors: 1, Skipped: 0