...
Jira server ASF JIRA serverId 5aa69414-a9e9-3523-82ec-879b028fb15b key SLING-11880
Failures in the maven-invoker-plugin
Sympton: maven-invoker-plugin invocations fail when running groovy scripts: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 65
.
Remediation: Update to the latest version of the maven-invoker-plugin, at least 3.6.1 at the time of this writing. That version brings in support for Java 21.
Examples:
Jira server ASF JIRA serverId 5aa69414-a9e9-3523-82ec-879b028fb15b key SLING-12305 - https://github.com/apache/sling-slingfeature-maven-plugin/pull/84