[ 
https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792116#comment-17792116
 ] 

Pawel Veselov commented on OPENJPA-2918:
----------------------------------------

Check the full exception trace. It's probably coming from some class parsing 
library.
Forcing plugin dependencies to using the latest version of that library should 
solve this.
We are using JDK 21, and it works. Unfortunately, we are using our own Maven 
plugin to do the enhancement, so it pull its own dependencies list, and I'm not 
sure which exact library needs to be updated.

> Support for Java 21
> -------------------
>
>                 Key: OPENJPA-2918
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2918
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Benoit Tellier
>            Priority: Major
>
> While trying to add Java 21 support in Apache James, the OpenJPA maven plugin 
> (version 3.2.2)  throw the following exception:
> {code:java}
> [ERROR] Failed to execute goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project 
> james-server-data-jpa: Execution enhancer of goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported 
> class file major version 65 -> [Help 1]
> {code}
> Maybe this could be as easy as updating the maven-plugin-plugin version? 
> Updating it aggressively solved a similar issue wit Apache James mailet 
> documentation maven plugin...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to