https://github.com/exasol/maven-project-version-getter
Java helper for getting the current project's version from test code.
https://github.com/exasol/maven-project-version-getter
exasol-integration integration-testing maven
Last synced: 4 months ago
JSON representation
Java helper for getting the current project's version from test code.
- Host: GitHub
- URL: https://github.com/exasol/maven-project-version-getter
- Owner: exasol
- License: mit
- Created: 2021-04-27T06:38:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T15:09:35.000Z (over 1 year ago)
- Last Synced: 2025-07-28T06:02:07.266Z (11 months ago)
- Topics: exasol-integration, integration-testing, maven
- Language: Java
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Maven Project Version Getter
[](https://github.com/exasol/maven-project-version-getter/actions/workflows/ci-build.yml)
[](https://search.maven.org/artifact/com.exasol/maven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
[](https://sonarcloud.io/dashboard?id=com.exasol%3Amaven-project-version-getter)
Java helper library for getting the current project's version from test code.
## Usage
```java
MavenProjectVersionGetter.getCurrentProjectVersion(); //returns for example "0.1.0"
```
You can also use this tool to get the version of a different project:
```java
MavenProjectVersionGetter.getProjectVersion(Path.of("path/to/project/pom.xml"));
```
## Additional Information:
* [Changelog](doc/changes/changelog.md)
* [Dependencies](dependencies.md)