IntelliJ IDEA 2017.3 Help

Generating Archives

This feature is supported in the Ultimate edition only.

IntelliJ IDEA integrates with Warbler, providing the possibility to generate .war archive of an application. Integration with Warbler requires JRuby.

Upon installing the Warbler gem, the warble command becomes available from the console. Besides that, the Tools | Build WAR command appears on the main menu.

Note that Build WAR file command recognizes the type of the interpreter and gems in project, and suggests to configure the proper versions.

To generate a web archive

  1. On the main menu, choose Tools | Build.WAR file.
  2. Specify the name of the target archive in the field Output file name.
  3. In the Build.WAR file dialog box, select the checkboxes next to the directories and files you want to include in the target archive.
  4. Enable or disable the following behavioral options, as required: Executable - if this checkbox is selected, the target archive will be executable.
    Precompiled - if this checkbox is selected, the Ruby files will be compiled into .class files.
    Include gem repository - if this checkbox is selected, the gem repository will be included into the archive.
    Turn on invoke/execute tracing, enable full backtrace - if this checkbox is selected, the tracing mode will be enabled.
  5. Select one or more files to be included into the WEB-INF directory of the web archive, and press the WEB-INF config button.
  6. Click OK to generate the archive.
Last modified: 11 October 2017

See Also

External Links: