Can I see the exact commands IntelliJ uses to build a java project?
Select a module or a project you want to compile and from the main menu, select Build | Build Project ( Ctrl+F9 ). IntelliJ IDEA displays the compilation results in the Review compilation and build output.
IntelliJ IDEA has its own native build system or you can use an external build tool such as Maven, Gradle, Ant, Gant, or sbt (for the Scala plugin) to build and deploy your project. The integration for the majority of the build tools that IntelliJ IDEA supports is bundled and enabled by default.
Switch the Java runtime used to run IntelliJ IDEAFrom the main menu, select Help | Find Action or press Ctrl+Shift+A . Find and select the Choose Boot Java Runtime for the IDE action. Select the desired runtime and click OK.
IDEA is not running java binary, so there is no way to see the commands. Instead, IDEA uses Java compiler API directly. If you want a raw representation of what is done to build the project, you can use Build | Generate Ant build. Examine the build file or run it from the command line via Ant to see what happens and what options/commands are invoked.
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