解决Maven ‘parent.relativePath‘ of POM的报红问题

子模块的parent指向的不是父模块,而是springboot

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.1.RELEASE</version>
</parent>

解决方法

在该<parent>标签中加上<relativePath />

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.1.RELEASE</version>
        <relativePath />
    </parent>


版权声明:本文为FlyCloudLee原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。