在Eclipse中使用Maven添加模块时报错:The parent project must have a packaging type of POM
解决办法:
是将pom.xml 中的 <packaging>jar</packaging> 改成 <packaging>pom</packaging>
见下图:
用"Overview"视图查看,做如下设置:
再切换到xml视图,就可以看到packaging已经修改为pom了。
转自:http://hi.baidu.com/duanxzf/item/7f28c10af9d412176d904870
相关推荐
IllegalStateException: The specified child already has a parent.我的博客中有文章讲解
maven项目pom.xml中parent标签的使用
parentProject:parentProject
jetty-parent-7.pomjetty-parent-7.pom
weld-parent-6.pom
asm-parent-5.0.3.pom
a_parent_project
jvnet-parent-3.pom
dubbo-parent-2.5.6.pom,中央仓库和阿里云私服都没有的版本
group id of the new project ... ... artifact id of the new project ... ... version of the new project ... <packaging> ... jar|pom ... </packaging> ......
maven-parent-pom-0.1.0.jar
maven总工程pom配置示例,适用于各种maven项目创建时的模板
Project build error: Non-resolvable parent POM for ...
objenesis-parent-3.1.pomobjenesis-parent-3.1.pom
xmlunit-parent-2.7.0.pomxmlunit-parent-2.7.0.pomxmlunit-parent-2.7.0.pom
asm-parent-3.1.pom
hamcrest-parent-1.3.pom
The device must have a point-ing ap¬para¬tus or method (such as a stylus, or a finger touching a touch pad), called the cursor, that de¬fines the current position. The cursor must be able to ...
slf4j-parent-1.5.6.pomslf4j-parent-1.5.6.pom
On the other hand, you must include the header file for Foo if your class subclasses Foo or has a data member of type Foo. Sometimes it makes sense to have pointer (or better, scoped_ptr) members ...