..
Now, when you first create a Spring Boot Project using Spring Initializr website and import the project as a Maven project in eclipse, you get a error on your project.
This error is a known bug with the Eclipse and Spring settings. Have never tried to get into all the details
But here is the remedy:-
In the pom file for your project. Inclide the following Maven-jar-plugin-version tag in the properties declaration section. Post that update the maven project, effectively rebuilding it.
The error should go away.
<?xml version="1.0" encoding="UTF-8"?>
<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 https://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.9.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.ashish</groupId>
<artifactId>springMvcOct14Project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>springMvcOct14Project</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
