IDEA Setup

Import a Maven Project into IntelliJ

Having downloaded the zip archive file, you’ll first have to extract it somewhere. Any directory is fine: don’t extract it, though, to the download folder since you might unintentionally delete your project later when clearing out old downloads.

In IntelliJ, select Open in the Welcome screen or File menu, as you can see in the screenshot here:

IntelliJ import screen

Next, from the directory tree that is displayed, find the folder where you extracted the files. Select the pom.xml file and click the Open button.

open pom.xml file

Select Open as Project from the dialog, as seen in the following screenshot:

open as project

This imports the project based on the pom.xml file. IntelliJ then imports the project and downloads all necessary dependencies. It can take several minutes, depending on the internet connection speed.

When the import is complete, your project structure should look as seen in the screenshot here:

project file hierarchy

Notice that the Java source files are in the src/main/java folder.

Last updated

Was this helpful?