[JAVA] Unknown error in line 1 of pom.xml when using Spring Boot in Eclipse

phenomenon

It's not easy to explain, but when using spring-boot in Eclipse, the following error appears.

booterror.jpg

A pom.xml that looks like this.

pom.xml


<?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 http://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.5.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<groupId>kagamihoge</groupId>
	<artifactId>springintegratesample</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>jar</packaging>

	<name>springintegratesample</name>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>11</java.version>
	</properties>

</project>

Countermeasures

If you just want to move for the time being, change `` `2.1.5to 2.1.4```.

Or add the following to the property.

<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>

Reference URL

Recommended Posts

Unknown error in line 1 of pom.xml when using Spring Boot in Eclipse
When you want to notify an error somewhere when using graphql-spring-boot in Spring Boot
Execution of initial processing using Spring Boot Command Line Runner
Get error information using DefaultErrorAttributes and ErrorAttributeOptions in Spring Boot 2.3
Spring Boot Hello World in Eclipse
Spring Boot application development in Eclipse
Memorandum of understanding when Spring Boot 1.5.10 → Spring Boot 2.0.0
How to solve the unknown error when using slf4j in Java
Error in implementation when implementing Spring validation
Javaw.exe error when starting Spring Boot (STS)
Settings when calling API using CSRF measures of Spring Security in JMeter
When @Transactional of Spring Boot does not work
MySQL error in Spring Unknown column'Value 1'in'field list'
Specify the encoding of static resources in Spring Boot
[Note] Configuration file when using Logback with Spring Boot
I checked asynchronous execution of queries in Spring Boot 1.5.9
Error when using SnapKit
How to use CommandLineRunner in Spring Batch of Spring Boot
Test field-injected class in Spring boot test without using Spring container
Until you start development with Spring Boot in eclipse 1
Until you start development with Spring Boot in eclipse 2
Specify spring.profiles.active via context-param of web.xml in Spring Boot
Customize the display when an error such as 404 Not Found occurs in Spring Boot
Get a list of other sessions of the same user when using Redis Session in Spring Boot (2 series). Also discard it.
Minimal customization of Spring Boot error page (implementation of ErrorController interface)
Accelerate testing of Validators that require DI in Spring Boot
[Rails] Japanese localization of error message when using Form object
How to control transactions in Spring Boot without using @Transactional
Set context-param in Spring Boot
Spring Boot 2 multi-project in Gradle
Error in Spring database connection
Using Amateurs UML in Eclipse
Error when using rails capybara
NoHttpResponseException in Spring Boot + WireMock
Try using Spring Boot Security
Get a proxy instance of the component itself in Spring Boot
[Java] Get data from DB using singleton service in Spring (Boot)
Uploading and downloading files using Ajax in Spring Boot (without JQuery)
Fitted in Spring Boot using a bean definition file named application.xml
Things to note when using Spring AOP in Jersery resource classes
Avoid character code error in java when using VScode extension RUN-CODE
I want to control the default error message of Spring Boot
The story that the build error did not stop when using Eclipse 2020
[Spring Boot] List of validation rules that can be used in the property file for error messages
Precautions when using checkboxes in Thymeleaf
Introduction of javaFX in Eclipse (April 2020)
Spring Boot + PostgreSQL error resolution method
Spring Boot Tutorial Using Spring Security Authentication
Write test code in Spring Boot
Implement REST API in Spring Boot
What is @Autowired in Spring boot?
[Spring Boot] Role of each class
Implement Spring Boot application in Gradle
[Java] LINE integration with Spring Boot
About error when implementing spring validation
Thymeleaf usage notes in Spring Boot
Procedure to make the value of the property file visible in Spring Boot
I got stuck using snake case for variable name in Spring Boot
Workaround for Command Line Runner to work with JUnit in Spring Boot
Automatically deploy a web application developed in Java using Jenkins [Spring Boot application]
Error when the member of Entity class used in SpringWebFlux is final