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>

猜你喜欢

转载自www.cnblogs.com/diffx/p/9442053.html