Maven: Non-resolvable parent POM

后端 未结 14 1525
一整个雨季
一整个雨季 2020-12-02 11:04

I have my maven project setup as 1 shell projects and 4 children modules. When I try to build the shell. I get:

[INFO] Scanning for projects...
[ERROR] The b         


        
相关标签:
14条回答
  • 2020-12-02 11:42

    Just add <relativePath /> so the parent in pom should look like:

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.0.4.RELEASE</version>
            <relativePath />
        </parent>
    
    0 讨论(0)
  • 2020-12-02 11:42

    Inside relative path tag do as follows

    <relative>{project_name}/pom.xml</relative>
    

    and then RunAs-> Maven build

    It worked for me.

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