Make Keycloak Model Map JPA module JDK 17 ready
See original GitHub issueDescription
I built Keycloak using OpenJDK 17.0.2 and maven 3.8.4 (using mvn clean install -DskipTests -Pdistribution
on latest main). The build failed for module Keycloak Model Map JPA
with the following error:
[ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.3.20.Final:enhance (default) on project keycloak-model-map-jpa: Unable to enhance class: JpaRoleMetadata.class: Failed to enhance class org.keycloak.models.map.storage.jpa.role.entity.JpaRoleMetadata: Unsupported class file major version 61 -> [Help 1]
So atm a (not currently planned) update to use JDK17 as default would fail due to the Problem with the enhancer. So the enhancer needs to be updated i guess.
Discussion
No response
Motivation
Have an easy mid-term upgrade path to use more modern java versions.
Details
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Keycloak 17.0.0 released
A new approach to documentation in form of server guides to help you install and configure Keycloak. Upgraded Quarkus to 2.7.0.Final.
Read more >Upgrading Guide - Keycloak
This guide describes how to upgrade Keycloak. It is recommended that you start by upgrading the Keycloak server first and Keycloak adapters ...
Read more >Keycloak 19.0.0 released
The keycloak-model-legacy-* modules will be available for a longer time ... #9662 JPA map storage: User no-downtime store keycloak storage ...
Read more >Upgrading Guide - Keycloak
This guide describes how to upgrade Keycloak. It is recommended that you start by upgrading the Keycloak server first and Keycloak adapters ...
Read more >Server Installation and Configuration Guide - Keycloak
The purpose of this guide is to walk through the steps that need to be completed prior to booting up the Keycloak server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@andreaTP - there’s already a linked PR that will be ready once I manage to run the full integration test suite for databases on the internal Jenkins.
Last time I tried, bumping hibernate core and c3p0 to 5.3.25 solved the issue. Since this bump is on a patch release I would consider it safe.