How to combine several run configurations in IntelliJ together?

The previously accepted answer does not work for running multiple servers or any scripts which do not terminate. However, now you can use the Compound run configuration to execute multiple non-terminating servers simultaneously. It looks like this:

Screenshot of what the setting looks like

Steps to get it working:

  1. Create the individual run configurations
  2. Create a new compound configuration
  3. Choose the desired individual run configurations.
  4. Run the new Compound configuration.
  5. Go to the intellij documentation.

All the individual configs will run simultaneously – perfect for servers and other threads which do not exit!

NOTE: Even the MultiRun plugin recommends using Compound on their GitHub page.
More info in the IDEA documentation.

Leave a Comment