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

相关推荐
Ashlee_code37 分钟前
什么是Web3?金融解决方案
开发语言·金融·架构·eclipse·web3·区块链·php
Edingbrugh.南空41 分钟前
Flink ClickHouse 连接器数据读取源码深度解析
java·clickhouse·flink
NE_STOP1 小时前
SpringBoot--简单入门
java·spring
hqxstudying1 小时前
Java创建型模式---原型模式
java·开发语言·设计模式·代码规范
Dcs2 小时前
VSCode等多款主流 IDE 爆出安全漏洞!插件“伪装认证”可执行恶意命令!
java
保持学习ing2 小时前
day1--项目搭建and内容管理模块
java·数据库·后端·docker·虚拟机
京东云开发者2 小时前
Java的SPI机制详解
java
超级小忍2 小时前
服务端向客户端主动推送数据的几种方法(Spring Boot 环境)
java·spring boot·后端
程序无bug2 小时前
Spring IoC注解式开发无敌详细(细节丰富)
java·后端
小莫分享2 小时前
Java Lombok 入门
java