Eclipse(STS):pom.xml 报错:Multiple markers at this line

pom.xml 报错:Multiple markers at this line

STS中,项目能够正常运行,但是 pom.xml 报错:Multiple markers at this line
项目本身没有任何修改,之前不报错的,突然报错了。

Multiple markers at this line
- schema_reference.4: Failed to read schema document 'https://maven.apache.org/xsd/maven-4.0.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
- cvc-elt.1.a: Cannot find the declaration of element 'project'.

解决方案

应该是eclipse解析项目错乱了,需要清理(clean)项目。清理之后,就不再报错了。

步骤:Project - Clean

Eclipse(STS):pom.xml 报错:Multiple markers at this line_第1张图片

clean的作用

把编译好的class等文件删除,使得eclipse对工程重新编译。

你可能感兴趣的:(开发工具安装与配置,eclipse,java)