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

相关推荐
Pluto_CSND2 小时前
Java中的静态代理与动态代理(Proxy.newProxyInstance)
java·开发语言
百***46453 小时前
Java进阶-在Ubuntu上部署SpringBoot应用
java·spring boot·ubuntu
serve the people3 小时前
Prompts for Chat Models in LangChain
java·linux·langchain
一叶飘零_sweeeet3 小时前
不止于 API 调用:解锁 Java 工具类设计的三重境界 —— 可复用性、线程安全与性能优化
java·工具类
A阳俊yi5 小时前
Spring Data JPA
java·开发语言
小王不爱笑1325 小时前
Spring AOP(AOP+JDBC 模板 + 转账案例)
java·后端·spring
遇印记5 小时前
蓝桥java蜗牛
java·学习·蓝桥杯
m0_565611135 小时前
Java-泛型
java·windows
张np5 小时前
java基础-集合接口(Collection)
java·开发语言
jakeswang5 小时前
ServletLess架构简介
java·后端·servletless