I have a JAVA project in IntelliJ IDEA that has multiple packages. But some files in my packages have their own main()
method and can be run on their own.
However if I do a right click on given file and choose "Debug/Run File.main()" IntelliJ will try to build all the files in the package, no matter if they are included or not.
Is there any way to run just that one file?