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>