多模块项目mvn打包报错 ‘packaging‘ with value ‘jar‘ is invalid Aggregator projects require ‘pom‘ as packaging

您所在的位置:网站首页 eclipse打包jar包 多模块项目mvn打包报错 ‘packaging‘ with value ‘jar‘ is invalid Aggregator projects require ‘pom‘ as packaging

多模块项目mvn打包报错 ‘packaging‘ with value ‘jar‘ is invalid Aggregator projects require ‘pom‘ as packaging

#多模块项目mvn打包报错 ‘packaging‘ with value ‘jar‘ is invalid Aggregator projects require ‘pom‘ as packaging| 来源: 网络整理| 查看: 265

springboot 多模块项目 maven打包报错 ,如下:

E:\workspace_idea\cm>mvn clean package [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. @ line 3, column 110 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.robot:cm:0.0.1 (E:\workspace_idea\cm\pom.xml) has 1 error [ERROR] 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. @ line 3, column 110 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

报错意思是 打包的是jar,但是需要 pom

看了下 多模块项目的 parent 项目 pom.xml文件,如下:

在这里插入图片描述

将 parent 项目中的 packaging 改为 pom 就好了。(注意是 parent 项目 )



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3