maven项目报settings.xml文件语法错误:‘settings.xml‘ has syntax errors

maven 的settings.xml 没写对(记录一下)

maven项目报settings.xml文件语法错误:‘settings.xml‘ has syntax errors_第1张图片

maven项目报settings.xml文件语法错误:‘settings.xml‘ has syntax errors_第2张图片

记得在D盘下建立一个真实的目录repository

 <localRepository>D:\repository</localRepository>

maven项目报settings.xml文件语法错误:‘settings.xml‘ has syntax errors_第3张图片

添加国内镜像源,我这里是配置阿里云仓库

 <mirrors>
    <mirror>
    	<id>alimaven</id>
    	<name>aliyun maven</name>
    	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    	<mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

你可能感兴趣的:(intellij,idea相关异常,java)