- Open the project into which you want to import the sources, and select File | Import Module.
-
In the dialog that opens, select
the directory or file which you want to use as a source of import.
This may be a directory that contains the corresponding collection of sources
or a file that appropriately describes such a collection.
(The possible choices are listed right in the dialog.)
Click OK.
As a result, the Import Module wizard opens. (There is also another way of accessing this wizard, see Opening the Import Module wizard.)
- On the first page of the wizard, specify the origin of the sources. (This page is not shown if IntelliJ IDEA has guessed what you are importing.) Select Import module from external model, and select Eclipse, Flash Builder, Gradle, or Maven. Click Next.
The next steps depend on the origin of the sources that you are importing. For more information, see the topics listed in the See Also section.
- Open the project into which you want to import the sources, and select File | Import Module.
-
In the dialog that opens, select
the directory which contains the collection of sources you want to import.
Click OK.
As a result, the Import Module wizard opens. (There is also another way of accessing this wizard, see Opening the Import Module wizard.)
- On the first page of the wizard, select Create module from existing sources and click Next.
-
The next page of the wizard
shows the directories in which source files are found.
Potentially, these directories may be your source root directories.
Select the directories which you want to include in your project as the source root directories and click Next.
- On the next page of the wizard, select and configure the libraries to be included in your project. Click Next.
- On the next page of the wizard, select and configure the modules to be included in your project. Click Next.
- The next page of the wizard shows the frameworks and technologies detected in your sources. Select the ones that you want to be enabled and click Finish.
Provided that a project is open in IntelliJ IDEA, you can access the Import Module wizard from:
- The main menu: .
-
The Project Structure dialog:
in the leftmost pane select Modules,
above the pane to the right click
and
select Import Module.
,