IntelliJ IDEA 2017.1 Help

Compilation Types

IntelliJ IDEA suggests several ways of compiling and building applications. The corresponding commands are available in the Build menu.

  • Compile <compilation_scope>. All the source files in the specified scope are compiled. The scope in this case may be a file, a package, etc. Refer to the section Compiling Target for details.
  • Build Project. All the source files in the entire project modified since the last compilation, are compiled. Dependent source files, if appropriate, are also compiled. Additionally, the tasks tied to the compilation or build process on the modified sources are performed. For example, EJB validation is performed, if the corresponding option is enabled on the Validation page. Refer to the section Building Project for details.
  • Build Module. Compiles recursively are all the source files which have been modified since the last compilation in the selected module, as well as in all the modules it depends on. Refer to the section Building Module for details.
  • Rebuild Project. All the source files in the project are recompiled. This may be necessary when the classpath entries have changed, for example, SDKs or libraries being used added, removed or altered. Refer to the section Rebuilding Project for details.

See Also


Last modified: 5 April 2017