This project is a maven plugin which validates the major, minor and build numbers of modules in a given parent pom. It is intended to replace the use of the unit test currently used for the same puropse. The build number is derived from either the SVN revision number or the changes since last branch in GIT. The resulting properties are also stored in properties files for use in the application at run time. Properties are also provided for each module to be used in setting the dependencies between the various modules.
Example usage:
<build>
<plugins>
<plugin>
<groupId>nl.mpi</groupId>
<artifactId>version-control-check</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<vcsType>git</vcsType>
<allowSnapshots>true</allowSnapshots>
<projectDirectory>${project.basedir}</projectDirectory>
<majorVersion>1</majorVersion>
<minorVersion>0</minorVersion>
<buildType>pretesting</buildType>
<propertiesPrefix>plugin</propertiesPrefix>
<shortVersionModules>
<param>parent</param>
</shortVersionModules>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>VersionControlCheck</id>
<name>VersionControlCheck Repository</name>
<url>http://kinshipsoftware.github.io/VersionControlCheck/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>