eclipse2019 pom.xml文件第一行报错,但是没有错误信息

项目中遇到,记录一下。

可能是因为版本太高的原因,版本调低就好了
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.5.RELEASE</version>//注意这里版本
		<relativePath/>
  	</parent>
  	
</project>
修改后
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.4.RELEASE</version>//注意这里版本
		<relativePath/>
  	</parent>
  	
</project>
版本改为2.1.4或之前的版本,然后Maven --> Update Project -->Force Update of Snapshots/Releases(强制更新)打勾 OK。
发布了9 篇原创文章 · 获赞 3 · 访问量 624

猜你喜欢

转载自blog.csdn.net/weixin_44657749/article/details/102914461