0

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>

  • What are you trying with your version tag? Why not just list the modules in the relevant section and let Maven build them? – J Fabian Meier Mar 27 '19 at 11:56
  • I did that too and created a tag and defined the inside this. but stll I'm facing the same error – AkashDeep Shukla Mar 28 '19 at 05:12
  • You cannot have a list of versions in the `` tag. Just one version. – J Fabian Meier Mar 28 '19 at 06:53
  • @JFMeier I did that too ... still same error – AkashDeep Shukla Mar 28 '19 at 09:12
  • I am trying to perform "mvn clean install" on different modules which have different parents. so I need to create a pom which will perform the action on one by one. – AkashDeep Shukla Mar 28 '19 at 10:23
  • Please edit your question and show your new POMs (with the correct version tags). – J Fabian Meier Mar 28 '19 at 10:25
  • @JFMeier edited the code. See the thing is, I have few separate projects and I just need a way to create a pom which will perform "mvn clean install" on each of them one by one. And those projects have different parents so I can't create a parent child Pom realation. I need to know how can I implement aggregator pom in this case. – AkashDeep Shukla Mar 29 '19 at 04:52
  • https://stackoverflow.com/questions/35034544/how-to-structure-a-multi-modules-maven-project-to-compile-it-at-once/55411236#55411236 similar problem but I dont have parent-child hierarchy in my situation... – AkashDeep Shukla Mar 29 '19 at 06:11

0 Answers0