A maven enforcer rule validating all sub-modules of an aggregated project have the right parent defined.
...
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.1</version>
<inherited>false</inherited>
<dependencies>
<dependency>
<groupId>com.github.jeluard.parent-enforcer-rule</groupId>
<artifactId>enforcer-rule</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>check</id>
<phase>verify</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireParentVersion implementation="com.github.jeluard.maven.ParentEnforcerRule" />
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
Released under Apache 2 license.