IntelliJ IDEA
 
Get IntelliJ IDEA

Add Maven support to an existing project

Last modified: 28 June 2024

You can open an existing non-Maven project (plain Java project) and add a Maven support via IntelliJ IDEA UI.

Before you start adding Maven to your project, please read Maven documentation to familiarize yourself with Maven concepts and components.

At this point you can further develop your project using Maven. We recommend making all your project changes in POM since IntelliJ IDEA considers pom.xml as a single source of truth.

If the existing project contains more than one module, converting such a project into the Maven project becomes quite challenging. In this case we recommend that you create an external POM where you describe your project and open your POM as you would open a regular Maven project.