- If no project is currently open in IntelliJ IDEA, click Import Project on the Welcome screen. Otherwise, select File | Import Project.
- In the dialog that opens, select the directory that contains the project to be imported, or a file that contains an appropriate project description. Click OK.
- On the first page of the Import Project wizard, select Maven, and click Next. (This page is not shown if IntelliJ IDEA has guessed what you are importing.)
- In the next page of the wizard, specify the project root directory.
Define your import preferences, if they differ from those specified in the Maven Integration dialog. Click Environment settings to configure the path to the Maven
home directory, user settings file, and local repository. You can accept defaults, or select the
Override check boxes, and specify the desired paths.
- In the next page of the wizard, select the desired profiles, and click Next.
- In the next page of the wizard, select the projects to be imported. Note that IntelliJ IDEA detects Maven projects by scanning the specified root. Click Next.
- If in the step 2 you have selected to import Maven project into a new IntelliJ IDEA project,
specify the new project name and location of the project files. Select also the format in which new IntelliJ IDEA project will be stored.
If a Maven project will be imported into the current IntelliJ IDEA project, proceed to the next step.
- Click Finish.
- On the main menu, choose .
- In the dialog box that opens, select the desired pom.xml file, and click OK. So doing, import is performed automatically, with the settings defined in the Maven Integration dialog.