描述:'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.
分析:模块的默认打包方式为jar,但是在多模块聚合时,父模块的packaging的打包方式为pom,所以要手动指定packaging为pom
解决:在父模块的 pom 文件中添加 <packaging>pom</packaging>
maven 问题整合
阅读 7
2024-04-09
描述:'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.
分析:模块的默认打包方式为jar,但是在多模块聚合时,父模块的packaging的打包方式为pom,所以要手动指定packaging为pom
解决:在父模块的 pom 文件中添加 <packaging>pom</packaging>
相关推荐
精彩评论(0)