Removing mysql.mysql-connector-java-8.0.30.jar.

181 views
Skip to first unread message

gaurav singh

unread,
Dec 7, 2023, 9:03:59 AM12/7/23
to Keycloak User
Hello, everyone,

I need your help. Currently, Keycloak X is delivered with default database drivers, and it comes with the built-in "keycloak-23.0.1\lib\lib\main\mysql.mysql-connector-java-8.0.30.jar." Unfortunately, this JAR file has a licensing issue as it is licensed under the GNU GPL. Therefore, unless we use the commercial version and pay for it, we should not include it in our deliveries.

To address this, we have replaced this driver with the MariaDB connector by configuring the driver update properties. However, when we try to remove the "mysql.mysql-connector-java-8.0.30.jar" file, Keycloak startup fails because it is referenced in the bootstrapping process of Quarkus. References to this JAR file are found in the following files:

- Binary file lib/lib/deployment/appmodel.dat matches
- Binary file lib/lib/deployment/deployment-class-path.dat matches
- Binary file lib/quarkus/quarkus-application.dat matches

Can anybody suggest how to completely remove the "mysql.mysql-connector-java-8.0.30.jar" from the Keycloak delivery without causing startup failures?

Your assistance is greatly appreciated.

Yi SONG

unread,
Dec 8, 2023, 8:37:10 AM12/8/23
to Keycloak User
Hello,

is it working if follow the page https://www.keycloak.org/server/db

Best regards,
Reply all
Reply to author
Forward
0 new messages