Documentation

Documentation versions (currently viewingVaadin 24)

Importing to an IDE

How to import a Maven project into IntelliJ IDEA.

You can import a Maven project into IntelliJ IDEA in several ways. The most common approach is to open the pom.xml file directly.

To start, in the Welcome to IntelliJ IDEA screen, click Open.

The welcome window is only shown when you close all projects in IntelliJ IDEA. If you don’t want to close your currently open projects, you can select File  Open in the menu instead.

Welcome screen

Import Project gives you more options to tweak the import process. However, this is out of the scope of this article.

Next, find the extracted folder, and select the pom.xml file.

Open <code>pom.xml</code> file

Select Open as Project. This imports a project based on the pom.xml file.

Open as project

IntelliJ imports the project and downloads all the necessary dependencies. This can take several minutes, depending on your internet connection speed.

When the import is complete, your project structure is similar to the following:

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

  • Test files are in the src/test folder. These are discussed later.

Project file hierarchy

72B6C185-7B30-4830-85E0-152423CCA403