1.使用mvn -v 命令后
查看是否安装成功
2.配置本地仓库 设置完maven的路径和本地仓库路径后
cmd管理员打开后 输入mvn help:system 从阿里云镜像仓库把jar下载到本地设置的仓库中
3.如果出现错误 把C:Userschen.m2下的setting.xml 去除
还不行的话 检查本地的setting.xml 中 阿里镜像仓库路径是否正确
4.如果 pom.xml 文件出现 错误
【报错信息:】Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.5:runtime Cause: error in opening zip file
把本地仓库中的 本地仓库路径(比如E:LocalRepository)orgapachemavenpluginsmaven-clean-plugin下的maven-clean-plugin包 换成3.0版本的
maven-plugin:2.5 对应 3.0版本
可以在 pom.xml 文件中 加入下面这一段
maven-clean-plugin
build一下maven项目 把3.0版本jar下载下来也可以
5.如果build出错可以在 pom.xml中 加入下面这一段
重新build应该就可以了



