Maven. Importing
Item | Description |
---|---|
Enable fast import | This option is selected by default, and your project will be imported using the new IntelliJ Workspace Model API that should speed up the process of the project's synchronization. You can unselect this option to preserve the regular importing and syncing processes for the project with which you are working. When this option is selected, the following options are disabled and hidden:
|
Detect compiler automatically | When this option is selected, IntelliJ IDEA uses the compiler that was automatically detected and is specified in the Use compiler list in . Unselect this option if you want to manually specify the compiler. |
Create IntelliJ IDEA modules for aggregator projects (with 'pom' packaging) | If this checkbox is selected, IntelliJ IDEA Maven Modules will be created for each module included in the pom.xml file of an aggregative project, provided that its packaging is set to 'pom'. |
Exclude build directory PROJECT_ROOT/target | Select this checkbox to exclude a build directory from the project. This might be useful if you want to speed up the project's importing process. If this checkbox is cleared, IntelliJ IDEA will index files in the build directory every time you import a project, which might take additional time. |
Use Maven output directories | If this checkbox is not selected, the build will be created in the regular IntelliJ IDEA's output directory USER_HOME\IdeaProjects\<project>\classes\Production\. If this checkbox is selected, the build is generated in the Maven's output directory, and the results of IntelliJ IDEA's compilation are reused. However, IntelliJ IDEA itself does not reuse Maven build results, and performs compilation from scratch. |
Generated sources folders | Specify the directory of your source root when you reimport a project. You can select one of the following options:
|
Phase to be used for folders update | Select a Maven phase to be used for folder update. This might be useful if you adjust your plugins so that additional sources are loaded at some phase. |
Automatically download | Select the corresponding checkboxes to automatically download sources (Sources) and documentation comments (Documentation) on opening Maven projects. You can select the Annotations option that lets you automatically download custom annotations. IntelliJ IDEA searches for those annotations in the JetBrains repository and downloads them as Maven artifacts during the project's import. |
Dependency types | Use this field to specify dependency types that you want to include when you reimport your project. |
VM options for importer | Use this field to specify VM options. The default option is When you specify the options, follow the following rules:
|
JDK for importer | Use this list to specify which JDK to use when the maven project is imported. You can choose one of the following options:
|