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>