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

pom.xml 报错:Multiple markers at this line

STS中,项目能够正常运行,但是 pom.xml 报错:Multiple markers at this line

项目本身没有任何修改,之前不报错的,突然报错了。

xml 复制代码
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

clean的作用

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

相关推荐
步行cgn2 小时前
Spring c 命名空间注入详解
java·后端·spring
明月_清风3 小时前
Maven 到底是什么?一篇文章搞懂 Java 项目构建与依赖管理
java·后端·maven
aramae3 小时前
MySQL复合查询(8)
java·c语言·开发语言·后端·算法
Rain的Java大神之路4 小时前
如何快速上传10G文件
java·spring boot·redis·后端·mysql·spring cloud·面试
Wang's Blog4 小时前
Java 接入Redis: 通用命令与键管理
java·服务器·redis
Wang's Blog4 小时前
Java 接入Redis: 列表集合与有序集合操作命令
java·服务器·redis
Ivanqhz5 小时前
SVD++算法
java·服务器·网络·深度学习·神经网络
qq_2518364575 小时前
springboot vue3 开发实现 拼豆管理系统
java·开发语言·ai编程
caoerzhong6 小时前
JeeWMS 开源仓库管理系统全景解读:一套 Java WMS 如何把 WMS/OMS/BMS/TMS 装进同一个系统
java·开源
曹牧6 小时前
Java集合框架:List、ArrayList、Map 和 HashMap
java