1

I'm sure there is an answer here, but I searched for the title and yielded nothing. Google was similarly unhelpful.

I have many projects in intelij, each with their own pom. They also have a parent-pom, that runs all of them.

I would like another pom that runs 4 specific projects in a set order. How do I do this?

Alternatively, in intellij can i just make a run command that just runs the 4 poms in order - that would be ideal.

Edit - the "possible duplicate", while I have no doubts exists, is definitely not what ever has been proposed.

bharal
  • 15,461
  • 36
  • 117
  • 195
  • Can you make a script to kick off what you need done? – Andreas Sep 15 '17 at 16:37
  • Possible duplicate of [Build order of Maven multimodule project?](https://stackoverflow.com/questions/11131575/build-order-of-maven-multimodule-project) –  Sep 15 '17 at 16:49
  • 2
    Perhaps you are looking for one pom to rule them all, one pom to find them; one pom to bring them all and in the darkness bind them? This sounds useful and tempting but I feel I must warn of the severe side effects. – pvg Sep 15 '17 at 17:10
  • Can't you make use of `--projects` option? From the directory of root pom file `mvn clean install --projects a,b,c,d` – Rishikesh Darandale Sep 15 '17 at 18:05
  • One possible option could be to use separate maven profiles for such runs. If you need to run specific projects regardless of maven multimodule reactor behaviour you can use IntelliJ Run Configuration 'Before launch' section and add there 4 specific maven commands in the order you need. – Vladislav Soroka Sep 19 '17 at 08:54

0 Answers0