Unify generator version setting


When the Java generator plugin is built, its version is taken from
the pom.xml file.
At the same time, we also have the QT_OPENAPI_GENERATOR_VERSION
variable in the .cmake.conf that is used in various CMake scripts.

With this configuration, if we want to bump the generator version,
we need to do it in two places.

This patch unifies the behavior by introducing a new
qt.generator.version variable into the pom.xml file and passing
the QT_OPENAPI_GENERATOR_VERSION as a value for this variable
when building the generator plugin. This allows us to only modify
the CMake variable when we want to change the generator version.

Task-number: QTBUG-143768
Pick-to: 6.11
Change-Id: Ic9962edd1bd7125343e46f6ba170acde24b05e05
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitef4bc6aadb89f9e23db5cfdc733a5a3f82ff365f
parent3ddf1f78b42aeede790cb3d92242a5ec77afa15f
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 2 Feb 2026 16:33:59 +0100