IntelliJ IDEA 2024.3 Help

Web facet page

File | Project Structure | Modules | <module> | Web

File | Project Structure | Facets | Web (<module>)

Use this page to edit the settings for your Web facet.

Item

Description

Name

The name of the facet.

Deployment Descriptors

Form the list of deployment descriptors for your application.

the Add button  Alt+Insert. Create web.xml and add it to the list. The function is not active if the corresponding descriptor is already present in the list.

the Remove button  Alt+Delete. Remove the selected descriptor from the list.

the Edit button  Enter. Replace the selected descriptor with another one of the same type.

Add Application Server specific descriptor. Create an application server-specific deployment descriptor (for example glassfish-web.xml, jboss-web.xml) and add it to the list.

Web Resource Directories the Web Resource folder

Specify the directories that contain your web app resources such as web pages, images, etc. (the Web Resource Directory column) and their locations in the corresponding artifact (the Path Relative to Deployment Root column).

For the resource directories to be included in an artifact, you should make sure that the artifact configuration contains a Web facet resources element. (All the resource directories are included in an artifact as a whole.) In that case, / in the Path Relative to Deployment Root column corresponds to the root of that element in the artifact configuration.

Source Roots

Select the source roots to be included in an artifact. Note:

  • If the '<ModuleName>' compile output element is present in an artifact configuration, the classes for all the source roots are included in the corresponding artifact irrespective of which source roots are selected here.

  • To include only the classes from the source roots selected on this page, use the following when configuring the artifact: | JavaEE Facet Classes | Web (in <ModuleName>). As a result, the corresponding element in the artifact configuration will be shown as '<ModuleName>' module: 'Web' facet classes.

Last modified: 11 February 2024