IntelliJ IDEA 14.0.0 Web Help

Web, EJB and Java EE Application Facet Pages

File | Project Structure | Modules - module - Web, EJB or Java EE Application facetCtrl+Shift+Alt+S projectStructure

Use this page to edit the settings for a Web, EJB or Java EE Application facet.

Controls for the above mentioned facets are similar, and the differences are specially marked.

Item Description Available for
Name In this text box, type the name of the facet. Web, JavaEE, EJB facets
Deployment Descriptors Use the controls in this section to manage application deployment descriptors.
  • Type - this read-only field shows the type of deployment descriptor, depending on the facet type: Web Module Deployment Descriptor, Application Module Deployment Descriptor, or EJB Module Deployment Descriptor, respectively.
  • Path - this read-only field shows the location of the deployment descriptor, web.xml, ejb.xml, or application.xml, respectively.
  • add (Alt+Insert) - use this icon or shortcut to create a new deployment descriptor. In the Deployment Descriptor Location dialog box that opens specify the descriptor location and the specification (version) to be used.

    Only one deployment descriptor can be created per facet.

  • edit1 (Enter) - use this icon or shortcut to specify another location for the selected deployment descriptor.
  • delete (Alt+Delete) - use this icon or shortcut to remove the selected descriptor from the list. To delete the selected descriptor from disk as well, select the Also delete from disk check box in the Delete Deployment Descriptor confirmation dialog box that opens.
  • Add Application Server specific descriptor - click this button to add a deployment descriptor for one of the supported application servers (Geronimo, GlassFish, Tomcat, JBoss, or WebLogic). In the Create Application Server Specific Descriptor dialog box that opens specify the desired application server and its version to use.
Web, JavaEE, EJB facets
Web Resource Directories Use this section to map third party or unclassified resource directories to the deployment directory roots.
  • Web Resource Directory - this read-only field shows the local directory where the desired Web resource resides.
    A Web resource directory contains files required for Web development: JSP, HTML, XML, etc. The contents of the Web resource directory are copied to the Web module deployment output according to the Relative Path setting.
  • Path Relative to Deployment Root - this read-only field shows the path to your Web resource directory relative to the deployment directory root.
  • add (Alt+Insert) - use this icon or shortcut to configure a new mapping in the Web Resource Directories dialog box that opens.
  • edit1 (Enter) - use this icon or shortcut to re-configure the selected mapping in the Web Resource Directories dialog box that opens.
  • delete (Alt+Delete) - use this icon or shortcut to remove the selected mapping from the list.
  • help - click this button to have the reference topic for the Web Resource Directories dialog box displayed.
Web facet
Source Roots This area shows the list of source roots encountered in the current module. Select the check box next to a root to have the classes from this root included in the corresponding artifact. Web facet
Create Artifact This button appears when no artifact of the relevant type is available. Click this button to create a new artifact on the Artifacts page that opens. Web, JavaEE, EJB facets
Fix Click this button:
  • To have the missing libraries downloaded and installed automatically.
  • To create an artifact of the relevant type and add the facet resources to it on the Artifacts page that opens.
  • To add the facet resources into an existing artifact on the Artifacts page that opens.
Web, JavaEE, EJB facets

See Also

Last modified: 12 November 2014
comments powered by Disqus