maven.gitlab-ci.yml : review and cleanup .version script
After changes on !210 (merged) to support using this template with release-it, some of the logic in .version may no longer be needed.
Note that the logic to determine the next version is still used for determining SNAPSHOT releases, but is no longer needed for actual releases, where the version from release-it tag is used instead.
Review and cleanup logic in .version.