I just imported a spingboot project that I created in https://start.spring.io/ in eclipse. I tried to import two times, but the problem persists. Already tried to do a mvn u
Was Getting exact same error. Solution by Gybandi kinda worked for me.
Updating project in Maven> menu does nothing to make error icon go away.
Did the 3.1.1 and then did a maven -> update project from context menu. The red (x) icon is now GONE :-). But I really don't want to downgrade my maven plugin, if possible.
The suggestion of updating m2e-connector from eclipse marketplace does not work. All I see against the m2e-connector entry is a "learn more" link which takes me to its webpage. Nothing like "upgrade/update" button present.
I fixed this issue by changing the version from 2.1.6 to 2.1.3
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
I changed this to 2.1.3 because there were two versions were shown available in local m2 repository at below path
.m2\repository\org\springframework\boot\spring-boot-starter-parent
I am using eclipse photon and had similar issue. Didnt want to add the maven-jar-plugin.version in my pom as I dont want my codebase to contain code specific to IDE.
What I noticed is eclipse photon has m2e version of 1.5 which is causing the problem. I uninstall all the m2e connectors, restarted my eclipse and then installed the m2e connector using the below url manually
https://download.eclipse.org/technology/m2e/releases/1.13/
this worked like a charm