首页 > 其他分享 >'packaging' with value 'jar' is invalid. Aggregator projects require 'pom&#

'packaging' with value 'jar' is invalid. Aggregator projects require 'pom&#

时间:2022-11-25 15:36:20浏览次数:43  
标签:Aggregator require jar packaging pom 模块 打包

'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.

1.报错信息

packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.

打包方式为jar包的打包方式无效,多模块项目需要POM的打包方式

2.出问题的pom.xml中,它含有子模块,即它是多模块聚合,打包方式应该为pom

image-20221125152038073

但是pom.xml中漏写了打包方式,所以要填上打包方式即可

image-20221125152236760

3.多模块聚合时,parent父模块的packaging类型是pom,可以在parent父模块的pom中定义来包含下面的子模块,相应的子模块packaging类型才是jar;

标签:Aggregator,require,jar,packaging,pom,模块,打包
From: https://www.cnblogs.com/zhangdashuaige/p/16925307.html

相关文章