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:
Steps to get it working:
- Create the individual run configurations
- Create a new compound configuration
- Choose the desired individual run configurations.
- Run the new
Compound
configuration. - 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.