I had installed Eclipse (actually Spring Tool Suite). It came with Maven. I had created Spring boot starter projects. Maven was downloading all the dependencies and things were working fine.
Recently, I created a new project. This time, I noticed an error in pom.xml
and the problem window (in STS) showing the following:
Description Resource Path Location Type
Unknown pom.xml /TestSessionAttribute line 1 Maven Configuration Problem
I noticed that the spring boot version was at 2.1.5 (it was 2.1.4 before).
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
I went ahead and did an update of the project (Maven > Update project) with the 'Force Update of Snapshots/Releases' checked. This did not resolve the problem.
I do see the
spring-boot-2.1.5.RELEASE.jar
in the m2 repository.
I went back and changed the version to 2.1.4 and then a Maven > Update Project and the errors went away.
Why am I getting the Maven error when version is 2.1.5?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…