移除项目位置
点击import project导入项目
选择自己所要导入的项目,选择pom.xml确定就可以了
进行第三步之后就会,肯定会报会多错误 plugins和dependencies都会有很多红波浪提示错误,不要担心,这是因为项目中缺少包的原因,点击lifestyle下面的clean,在点击install,再点击一下运行按钮,所有的jar包就会下载到本地的默认路径下(C:/Users/自己电脑的用户名/.m2),可能会有点久 稍微需要等一下,下载好了再运行项目就可以啦~~
如果觉得下载太慢,也可以把已经下载好的同学的.m2文件copy过来,再重启一下IDEA就可以啦