Why am I getting Unknown error in line 1 of pom.xml?

后端 未结 18 1343
悲&欢浪女
悲&欢浪女 2020-12-02 06:43

Getting unknown error at Line 1 in pom.xml in Eclipse IDE. It was working fine till yesterday, but all of a sudden after updating my project from master and aft

相关标签:
18条回答
  • 2020-12-02 07:20

    For me, changing pom.xml for SpringBoot 2 project from 2.1.6.RELEASE

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.6.REL`enter code here`EASE</version>
            <relativePath /> <!-- lookup parent from repository -->
    </parent>
    

    to 2.1.4.RELEASE verified and works

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.4.RELEASE</version>
            <relativePath /> <!-- lookup parent from repository -->
    </parent>
    
    0 讨论(0)
  • 2020-12-02 07:21

    For me I changed in the parent tag of the pom.xml and it solved it change 2.1.5 to 2.1.4 then Maven-> Update Project. its worked for me also.

    0 讨论(0)
  • 2020-12-02 07:25

    You must to upgrade the m2e connector. It's a known bug, but there is a solution:

    1. Into Eclipse click "Help" > "Install new Software..."

    2. Appears a window. In the "Install" window:

      2a. Into the input box "Work with", enter next site location and press Enter https://download.eclipse.org/m2e-wtp/releases/1.4/

      2b. Appears a lot of information into "Name" input Box. Select all the items

      2c. Click "Next" Button.

    Finish the installation and restart Eclipse.

    0 讨论(0)
  • 2020-12-02 07:25

    Got this error on eclipse IDE version 4.10, Spring boot 2.2.0.M4, changed the Spring boot version to 2.2.0.M2 (after many other solutions recommended and it solved the error). Maybe something missing or broken in the latest version of Spring boot starter project module maven POM.

    0 讨论(0)
  • 2020-12-02 07:26

    In my pom.xml file I had to downgrade the version from 2.1.6.RELEASE for spring-boot-starter-parent artifact to 2.1.4.RELEASE

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.6.RELEASE</version>
            <relativePath /> <!-- lookup parent from repository -->
    </parent>
    

    to be changed to

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.4.RELEASE</version>
            <relativePath /> <!-- lookup parent from repository -->
    </parent>
    

    And that weird Unknown error disappeared

    0 讨论(0)
  • 2020-12-02 07:27

    You just need a latest Eclipse or Spring tool suite 4.5 and above.Nothing else.refresh project and it works

    0 讨论(0)
提交回复
热议问题