当你import的项目pom.xml 开头报错
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
此处报错
原因就是你的maven的配置文件不是最新的
1.help ->Install New Software -> add-->
https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST
PS:点击 next 前,将 eclipse Install 窗口右下角的 Contact all update sites during install to find required software 选项取消掉。
2.一直next confirm 安装更新 提示重启eclipse 然后再右键项目maven update project
网友评论