Open magicprinc opened 2 weeks ago
@magicprinc New versions of the h2 engine will not work with Apache Ignite, you can use the Calcite engine if these vulnerabilities are critical for you https://ignite.apache.org/docs/latest/SQL/sql-calcite#calcite-module-libraries
@nao-it No, I have another problem. I use some library, which depends on new h2. So, thers is a conflict between new h2 and Ignite's h2. The good solution is shading. GridGain Community has shaded h2 ⇒ no public dependency, all classes bundled with different package name.
More theory on the topic "shading" (maven plugin is also available) https://imperceptiblethoughts.com/shadow/introduction/
With
com.h2database:h2:2.2.224
I receive:The last compatible version of h2 is 1.4.197 → Mar 18, 2018 with a lot of vulnerabilities!
The h2 database must be either:
I use Gradle and don't know Maven, but it should probably look close to this:
https://github.com/magicprinc/ignite/commit/a185f1eba68eee548f42e8b1198d8fff572b0c2d
(see also https://github.com/apache/ignite/pull/9336)
See also https://github.com/gridgain/gridgain/tree/master/modules/h2