The parent project must have a packaging type of POM

The parent project must have a packaging type of POM

在Eclipse中使用Maven添加模块时报错:The parent project must have a packaging type of POM



解决办法:

是将pom.xml 中的  <packaging>jar</packaging> 改成  <packaging>pom</packaging>

见下图:

用"Overview"视图查看,做如下设置:

The parent project must have a packaging type of POM_第1张图片
再切换到xml视图,就可以看到packaging已经修改为pom了。

 

转自:http://hi.baidu.com/duanxzf/item/7f28c10af9d412176d904870

你可能感兴趣的:(project)