IntelliJ IDEA 13.1.0 Web Help

IntelliJ IDEA enables you to create a project on the base of an existing Maven project, represented by pom.xml file. There are two ways to import a Maven project:

To import a Maven project
  1. If no project is currently open in IntelliJ IDEA, click Import Project on the Welcome screen. Otherwise, select File | Import Project.
  2. 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.
  3. 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.)
  4. 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.

    Click Next.

  5. In the next page of the wizard, select the desired profiles, and click Next.
  6. 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.
  7. 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.

  8. Click Finish.
To import a Maven project with the default settings
  1. On the main menu, choose File | Open.
  2. 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.

See Also

Concepts:

Reference:

Web Resources: