The parent project must have a packaging type of POM

Posted 疯子加天才

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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"视图查看,做如下设置:

再切换到xml视图,就可以看到packaging已经修改为pom了。

 

以上是关于The parent project must have a packaging type of POM的主要内容,如果未能解决你的问题,请参考以下文章

嵌套Fragment的使用及遇到The specified child already has a parent. You must call removeView()问题的解决

Intellij-出现Module ** must not contain source root **. The root already belongs to module **这类错误的解决方法

FFmpeg打开x265编码器报错:Lookahead depth must be greater than the max consecutive bframe count

FFmpeg打开x265编码器报错:Lookahead depth must be greater than the max consecutive bframe count

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

Can some one explain the difference between the Wasmer and Wasmtime projects