Common settingsAllow running multiple instances of this run configuration in parallel. By default, it is disabled, and when you start this configuration while another instance is still running, IntelliJ IDEA suggests stopping the running instance and starting another one.
Click 'Compound' In the right-hand pane, enter a meaningful name for your group, then click the green '+' icon (the one in the right-hand pane, not the top-left of the window) Select one of the run configurations. Repeat 5 and 6 for all the configurations you want to run in a single click.
The previously accepted answer does not work for running multiple servers or any scripts which do not terminate.
The good news is that now you can use the Compound
run configuration which is build natively into the program to execute multiple servers simultaneously which do not terminate.
In fact, even the MultiRun plugin states on their GitHub page that they recommend to use the Compound
run configuration over their plugin.
Official IntelliJ IDEA documentation
Here's what the options looks like:
Steps to get it working:
Compound
configuration.All the individual configs will run simultaneously. Perfect for servers and other threads which do not exit!
This now is possible (despite the fact that the issues @CrazyCoder linked to are still open as of this date). In Intellij 12, you can "Run Another Configuration" before launch when you're in "Edit Configurations". Here's a screenshot:
Check out this Multirun plugin.
And yes, I found it following CrazyCoder's link, so props to him again!
I found that 'Compound' sorted all modules alphabetically and launched them in that order. This could be a problem if there are modules with dependencies. If there is a way to override that sorting, I could not find it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With