maven打包遇到Aggregator projects require 'pom' as packaging问题解决
作者:互联网
springboot 多模块项目打包时遇到
[ERROR] 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. @ line 3, column 102
在 parent 项目中的 pom.xml
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.abc</groupId>
<artifactId>conve</artifactId>
<version>1.0</version>
<name>convert</name>
<description>conve</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
……
</dependencies>
<modules>
<module>multiple</module>
<module>single</module>
</modules>
……
默认打包类型为 jar
<packaging>jar</packaging>
解决的方法:
修改打包类型 pom
<packaging>pom</packaging>
标签:Aggregator,require,boot,jar,packaging,pom,打包 来源: https://www.cnblogs.com/hanlk/p/14532210.html