I have used aggregator POM for that and it says "The reactor contains different versions. The reactor is not valid ". Included the aggregator POM file
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.parent</groupId>
<artifactId>parent</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<modules>
<module>moduleA-bom</module>
<module>module-dependencies</module>
<module>module-parent</module>
<module>module-core-datamodel</module>