1.新建Empty Project

2.新建Moudle

3.如下图,勾选Create from archetype,选中后缀为
org.apache.maven.archetypes:maven-archetype-quickstart

4.填写GroupId,Artifactld,然后Next
注意:
- Add as moudule to后为none
- Parent后也为none

5.Maven环境检查

6.检查Moudle name,Content root,Moudle file location的路径,如图

7.点击Finish,等待Maven构建完毕
8.构建成功后,修改pom.xml中的JDK版本为1.8,在main目录下手动创建resources目录,并设置为resour root
右击resources—Mark Directory as—Resources Root
网友评论