Importing Project from Maven Model
IntelliJ IDEA enables you to create a project on the base of an existing Maven project,
pom.xml file. There are two ways to import a Maven project:
- Using the New Project wizard, with the custom settings.
- Using the Open Project dialog, with the default settings.
To import a Maven project
- If no project is currently open in IntelliJ IDEA, click Import Project on the Welcome screen. Otherwise, select File | New | Project from Existing Sources.
- 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.)
- On 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 Maven environment settings.
- On the next page of the wizard, select the desired profiles, and click Next.
- On 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.
- On the next page of the wizard, select the project's SDK. Click Next.
- On the next page of the wizard, specify the new project name and location of the project files. Click Finish.
To import a Maven project with default settings
- On the main menu, choose .
- In the dialog box that opens, select the desired
pom.xmlfile, and click OK. In this case the import is performed automatically, with the settings defined in the Maven Integration dialog.
Last modified: 8 August 2016