The [0.0.0] version of the [jdbc] client is not compatible with Elasticsearch version [7.10.0];]

Thank you for your answer.

My issue is because the Elasticsearch jdbc driver is packaged to my final jar, and the MANIFEST.MF is missing.
As you know, the X-Compile-Elasticsearch-Version is defined in MANIFEST.MF.

Finally, I choose to load the driver dynamically. And my previous solution was not reasonable.