一、创建maven项目
左上角File 》》》New 》》》 Project
2.选择Maven ,点击Next
3.输入GroupId 和 ArtifactId 点击Next
4.选择项目路径,点击Finish 创建项目
二、选择maven工作以及jar包目录
1.左上角File 》》》 settings
2. 搜索框输入Maven
3.找到自己安装Maven 的目录,在Maven目录下conf/settings.xml设置jar包工作路径
三、创建项目模块
四.添加模块依赖
1.选择File 》》》Project Structure
2.选择Modules 》》》选中一个模块》》》右边 + ,选择Module Dependency