Create a new Maven project
-
If no project is currently open in IntelliJ IDEA, click New Project on the Welcome screen. Otherwise, select File | New | Project from the main menu.
-
Select Maven from the options on the left.
- Specify project's SDK (JDK) or use the default one and an archetype if you want to use a predefined project template (configure your own archetype by clicking Add Archetype ).
Click Next.
- On the next page of the wizard, specify the following Maven coordinates that are added to the pom.xml file:
-
GroupId- a package of a new project.
-
ArtifactId- a name of your project.
-
Version- a version of a new project. By default, this field is specified automatically.
For more information on Maven coordinates, see Maven naming conventions.
Click Next. -
- If you are creating a project using a Maven archetype, IntelliJ IDEA displays the Maven settings that you can use to set the Maven home directory and Maven repositories. Also, you can check the archetype properties.
Click Next.
- Specify the name and location settings.
Click Finish.