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对工程重新编译。

相关推荐
茂桑3 分钟前
MVCC(多版本并发控制)
java·开发语言·数据库
customer0818 分钟前
【开源免费】基于SpringBoot+Vue.JS医疗报销系统(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
B站计算机毕业设计超人22 分钟前
计算机毕业设计SpringBoot+Vue.jst房屋租赁系统(源码+LW文档+PPT+讲解)
vue.js·spring boot·后端·eclipse·intellij-idea·mybatis·课程设计
barcke27 分钟前
【深度解析】Java接入DeepSeek大模型:从零实现流式对话+多轮会话管理(完整项目实战) —— SpringBoot整合、API安全封装、性能优化全攻略
java·spring boot
zl97989939 分钟前
MybatisPlus-注解
java·spring·maven
杰九1 小时前
【环境配置】maven,mysql,node.js,vue的快速配置与上手
java·vue.js·spring boot·mysql·node.js·maven
wapicn991 小时前
‌挖数据平台对接DeepSeek推出一键云端部署功能:API接口驱动金融、汽车等行业智能化升级
java·人工智能·python·金融·汽车·php
逸狼2 小时前
【JavaEE进阶】Spring DI
java·开发语言
yonuyeung2 小时前
代码随想录算法【Day54】
java·数据结构·算法
敲上瘾2 小时前
基础dp——动态规划
java·数据结构·c++·python·算法·线性回归·动态规划