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 @   这个人在加班  阅读(15470)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示