[JAVA] Maven configuration problem in Spring pom.xml in Eclipse

Development environment

Event

In a newly created Spring Boot project with STS, the first line of pom.xml gives an error. Maven configuration problem.png Eclipse uses "pleiades-2019-03-java-win-64bit-jre_20190508".

Cause

A bug in the latest version 3.1.2 of maven-jar-plugin at the moment?

Action

Check with npm repository and 3.1.2 is the latest. Maven version control.png It is solved by dropping one version to 3.1.1.

4.0.0 org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE com.example demo 0.0.1-SNAPSHOT demo Demo project for Spring Boot

<properties>
	<java.version>11</java.version>
    <!--add to-->
	<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
</properties>

 > ## Provisional measures?
 Will it be fixed when> 3.1.3 comes out? For the time being, it is a provisional measure.

 [Source site](https://one-it-thing.com/2002/)


Recommended Posts

Maven configuration problem in Spring pom.xml in Eclipse
Spring Boot Hello World in Eclipse
Spring Boot application development in Eclipse
Unknown error in line 1 of pom.xml when using Spring Boot in Eclipse
Hello World with Eclipse + Spring Boot + Maven
How to include Spring Tool in Eclipse 4.6.3?
[Eclipse / Tomcat] Servlet + JSP in Maven webapp project
@Import target is treated as @Configuration in spring
Include external jar in package with Spring boot2 + Maven3
Until you start development with Spring Boot in eclipse 1
Until you start development with Spring Boot in eclipse 2
Inject Logger in Spring
To debug in eclipse
Use Interceptor in Spring
Microservices in Spring Cloud
How to specify "-parameters" compile options added in JDK 8 (Maven, IntelliJ, Spring Tool Suite = Eclipse)
Get cookies in Spring
Put the file in the properties of string in spring xml configuration
Overwrite bean definition in spring xml configuration file with another xml