当前位置:   article > 正文

【BUG】错误:Invalid packaging for parent POM xxxx,must be “pom“ but is “jar“

invalid packaging for parent pom

问题描述

Spring Boot项目中,父工程未指定打包方式:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

[INFO] Scanning for projects…
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM com.simon:my-spring-cloud2:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\pom.xml), must be “pom” but is “jar” @ com.xxx:my-spring-cloud2:0.0.1-SNAPSHOT, D:\DataValue\my-spring-cloud2\pom.xml
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.simon:provider:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\provider\pom.xml) has 1 error
[ERROR] Invalid packaging for parent POM com.simon:my-spring-cloud2:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\pom.xml), must be “pom” but is “jar” @ com.xxx:my-spring-cloud2:0.0.1-SNAPSHOT, D:\DataValue\my-spring-cloud2\pom.xml
[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

解决方案

将打包方式设为pom

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/451418
推荐阅读
相关标签
  

闽ICP备14008679号