This topic discusses the features that become available when you turn on the JavaEE Application option.
Overview
When you turn on the JavaEE Application option, IntelliJ IDEA:
-
Creates
META-INF/application.xml, an enterprise application archive deployment descriptor. -
Creates a Java EE Application
facet that lets you specify
the locations of your
application.xmland application server-specific deployment descriptors (e.g.glassfish-application.xml,jboss-app.xml). -
Creates an Exploded EAR
artifact configuration.
- Makes the JavaEE:App tool window available.
If you turn on the JavaEE Application option when creating a project or module and specify an application server, IntelliJ IDEA also creates a run/debug configuration for that server.
Turning on the javaee application option
You can turn on the JavaEE Application option:
- When creating a project or module ( or ). On the first page of the New Project or the New Module wizard, select Java Enterprise, and then select the JavaEE Application check box under Additional Libraries and Frameworks.
- For an existing module. In the Project tool window (), right-click the module folder and select Add Framework Support. Then select the JavaEE Application check box in the dialog that opens.
Working with deployment descriptors
You can manage your application.xml and server-specific deployment descriptor files
in the Project Structure dialog:
- Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
- In the leftmost pane, select Modules or Facets.
- In the pane to the right, select javaEEApplication.
- On the page that opens in the right-hand part of the dialog, form the list of deployment descriptors for your application.