version_is
detects whether the current dir POM (or the whole Git project POM files) match the specified version.
This can be useful as a sanity check after a merge (where POM versions could have silently changed to a non-desired value).
Just export version_is
directory into your PATH
.
The script automatically detects if you miss some dependencies, so you will quite quickly notice when you need to install one ;-)
Easy as:
$> cd /path/to/git/versioned/maven/project
$> version_is --help
For example, suppose we want to check that all POM versions of a specific Git project match 2014.07.2
, just run:
$> cd /path/to/git/versioned/maven/project
$> version_is 2014.07.2 everywhere
Please note this works from any subdirectory within the same Git project!
Following the same example, but for a specific pom.xml (located under a/b/c
subdirectory).
$> cd /path/to/git/versioned/maven/project/a/b/c
$> version_is 2014.07.2