pom中报错Project ‘org.springframework.boot:spring-boot-starter-parent:2.2.6.RELEASE‘ not found

springboot中pom.xml父类版本出现如下问题

Project ‘org.springframework.boot:spring-boot-starter-parent:2.2.6.RELEASE‘ not found

pom.xml如下

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>`

因为你本地仓库里有2.0.0的,但是要引入2.2.6的,但问题的根本原因在于父依赖项的索引被idea给缓存起来了。Invalidate Caches/Restart一下就解决了,在idea中右上角?框框打入Invalidate Caches/Restart。

你可能感兴趣的:(常见错误,spring,intellij-idea,java,spring,boot)