This information is valid for projects that are built with the native IntelliJ IDEA builder. If you're using a build tool, such as Maven or Gradle, make all changes using the build file.
For developing framework-specific applications, IntelliJ IDEA features facets. Facets contain libraries, dependencies, and technologies, and they provide you with additional UI elements for configuring framework-specific settings.
Note that not all facets are available out of the box. To be able to use some of them, you need to install a plugin for the necessary framework first. Refer to JetBrains Plugin Repository for more information on existing plugins.
IntelliJ IDEA can identify a file or a directory that is typical for a certain framework, and add the necessary facet for you. Once the facet is detected and added, IntelliJ IDEA will inform you about the missing configuration and will suggest the necessary actions.
If a facet is not detected automatically, you can add it manually. You can add more than one facet to a module.
note
Some frameworks are available only in IntelliJ IDEA Ultimate. Refer to comparison matrix to make sure your version of IntelliJ IDEA supports the necessary frameworks.
You can find all facets that are configured for modules in your project in the Project Structure dialog: from the main menu, select File | Project Structure (Ctrl+Alt+Shift+S) and select Modules.
If you use a build tool in your project, such as Maven or Gradle, make all changes using the build file.
Manually add a facet to a module
In the Project tool window Alt+1, right-click the module to which you want to add a facet, and select Add Framework Support.
Select the necessary framework from the list.
Depending on your choice, you might be prompted to configure additional settings (for example, to configure a library).
Apply the changes and close the dialog.
Disable framework auto-detection
By default, auto-detection is enabled for all the supported frameworks. You can disable framework auto-detection completely, or exclude individual frameworks from auto-detection.
From the main menu, select File | Project Structure (Ctrl+Alt+Shift+S) and select Facets.
Select Detection and click Alt+Insert.
From the Framework to Exclude list, select the necessary option.
You can disable auto-detection of a specific framework only in one directory or in the whole project. The list also allows you to disable auto-detection of all frameworks in a specific directory.
If you want to disable auto-detection of all frameworks in the whole project, deselect the Enable framework detection checkbox.
To re-enable auto-detection everywhere, select the Enable framework detection checkbox and remove all entries from the Exclude from detection list.
tip
In this dialog, you can also remove a framework or add a new one.
Thanks for your feedback!
Was this page helpful?
Cookie Settings
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.