O'Reilly logo

Apache Maven Cookbook by Raghuram Bharathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing an existing Maven project in IntelliJ IDEA

While we can use IntelliJ IDEA to create a new project, in most cases you will already have an existing project in your filesystem. In the latter scenario, you will want to import this project.

Getting ready

As IntelliJ IDEA needs a Java environment to run, let us first ensure that the Java environment is set up on our system:

  1. Ensure that JDK is installed.
  2. Download IntelliJ IDEA by visiting https://www.jetbrains.com/idea/ and clicking on the Download link.
  3. Ensure the project SDK is set to your Java installation.

How to do it...

To import an existing Maven project in IntelliJ IDEA, perform the following steps:

  1. Start IntelliJ IDEA.
  2. Choose Import Project. Browse for the simple project that we created earlier: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required