springboot多模块打包报错注意两点:
1、
<relativePath/>给父模块加上,
子模块加<relativePath>../pom.xml</relativePath>
2、父模块加上:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.1.RELEASE</version>
<relativePath/> <!-- <relativePath/>需要加上 -->
</parent>
<groupId>com.example</groupId>
<artifactId>j_cloud</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>j_cloud</name>
<description>Demo project for Spring Boot</description>
<!-- spring boot 聚合父工程中,打包类型要求设置为 pom-->
<packaging>pom</packaging>