maven的pom文件报错: must be "pom" but is "jar"

问题

Project build error: Invalid packaging for parent POM com.test:hello-parent:0.0.1-SNAPSHOT (E:\eclipse-workspace\hello-parent\pom.xml), must be "pom" but is "jar"

解决办法

parent工程的pom.xml文件的project节点下加入如下节点:

<packaging>pom</packaging>
posted @ 2018-08-08 12:12  这个人在加班  阅读(15287)  评论(0编辑  收藏  举报