Reputation: 1047
Is there a way to run multiple applications with just one press of a button?
Say, I have AppA, AppB, and AppC (they are all in java). Is there a way that they could run all 3 in some order with just one button press?
It's kinda tedious hitting the "run" button for like 10 applications. I'm assuming a script or maybe a plugin?
Upvotes: 100
Views: 74702
Reputation: 661
You can do this. Go to Run
-> Edit Configurations...
.
Older IntelliJ versions:
Check Allow parallel run
, then you can start multiple main classes.
IntelliJ 2020+:
Select Modify options
. A popup appears. Enable Allow multiple instances
.
Upvotes: 29
Reputation: 10562
I think this has been possible since version 15. You simply create a Run/Debug Configuration of type 'Compound', and select the configurations you want to run, so:
Other answers have mentioned the Multirun plugin, which may offer more functionality than IntelliJ's native options. I haven't used it, but it might be worth looking at.
Upvotes: 174
Reputation: 1
Select the Written program(java/Scala) --> right click --> Edit --> Select Allow parallel runs check boxenter image description here
Upvotes: -6
Reputation: 1129
You can agroup the projects, go to "Edit Configurations..."
The following screen will open, under "Application" configure your settings
Once you create a "Compound"
And put "Compound" your settings
Done, just run the "Compound"
Upvotes: 18
Reputation: 12735
There seems to be a Multirun plugin for IDEA:
Allows to run multiple run configurations at once: group multiple run configurations and start them in a single click. Not only application and test run configurations can be grouped, but other Multirun configurations can be organized into single run configuration.
Upvotes: 34