1.在项目中找到pom.xml文件; 2.在pom.xml文件上方点击右键; 3.找到‘add as maven Bulid file’ ; 4.选重; 5.idea 右边菜单栏出现‘Maven’的图标; 6.项目就被maven接管。