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.
这篇博客指导如何在IntelliJ IDEA中新建一个Maven项目。首先从欢迎屏幕选择New Project,然后选择Maven选项。接着设置项目的SDK和(可选)archetype,输入GroupId、ArtifactId和Version等Maven坐标信息。如果使用archetype,可以进一步配置其属性。最后指定项目名称和位置,点击Finish完成创建。
487

被折叠的 条评论
为什么被折叠?



