Java helper library for getting the current project's version from test code.
MavenProjectVersionGetter.getCurrentProjectVersion(); //returns for example "0.1.0"
You can also use this tool to get the version of a different project:
MavenProjectVersionGetter.getProjectVersion(Path.of("path/to/project/pom.xml"));