Use spring boot pom.xml first line maven project 2.1.8 generated error unknown error

Question: pom.xml error unknown error when the eclipse neon4.6.3 New springboot project

pom.xml error

The reason: the Spring 2.1.8 update the Boot maven plugin, eclipse is not compatible.

Solution: In adding maven-jar-plugin version 2.1.4 or down to the spring boot and below can pom.xml, and then update projects on it.

1     <parent>
2         <groupId>org.springframework.boot</groupId>
3         <artifactId>spring-boot-starter-parent</artifactId>
4         <version>2.1.8.RELEASE</version>
5         <relativePath/> <!-- lookup parent from repository -->
6     </parent>

or

1     <properties>
2         <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
3     </properties>

Error disappears, right -> maven -> update project

 

Guess you like

Origin www.cnblogs.com/qzkuan/p/11599622.html
Recommended