IntelliJ IDEA 2017.1 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.

NameThe name of the facet.
Deployment Descriptors Form the list of deployment descriptors for your application.

/help/img/idea/2017.1/new.png (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.

/help/img/idea/2017.1/delete.png (Alt+Delete). Remove the selected descriptor from the list.

/help/img/idea/2017.1/edit1.png (Enter). Replace the selected descriptor with another one of the same type.

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

Web Resource Directories 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: /help/img/idea/2017.1/new.png | 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.

See Also

Last modified: 18 July 2017