Reputation: 1182
I have a maven project with many demo classes with their own main methods, they don't dependent on each other. I used to be able to run a class by right clicking on its main method, and select Run MyClass.main()
. But now instead of running it, it started to build the maven project as a whole.
Is there a way to "fix" this?
Upvotes: 2
Views: 1742
Reputation: 16381
IDE performs tasks that are set in Before launch section of the Run/Debug Configuration. By default the Build set is set there - which will build the all the sources which deletd on the code you are trying to run.
Upvotes: 2
Reputation: 19421
Check that in the settings the "Delegate IDE build..." is not selected:
Upvotes: 1