IntelliJ IDEA
 
Get IntelliJ IDEA

Configure Web application deployment

Last modified: 02 December 2024

A Web application can be deployed to the server as an exploded directory where files and folders are presented in the file system as separate items or as a Web archive (WAR file) which contains all the required files. Therefore, you need to configure the layout of your project output, so it can be deployed to the server in one of these forms. In IntelliJ IDEA, the layout of a project output is defined through artifacts.

When you enable Web development in a module, IntelliJ IDEA configures an artifact of the type exploded with the following basic structure:

Configuring an artifact

You can use this pre-defined artifact, possibly with necessary customization, or configure a new artifact.

Configuring an artifact to deploy involves:

  1. Specifying the artifact type, name, and output directory.

  2. Adding static Web content resources.

The suggested deployment configuration procedure reflects the basic workflow which can be flexibly customized depending on your preferences and the requirements to a specific Web application.