The parent project must have a packaging type of POM 解决办法是将pom.xml 中的 <packaging>jar</packaging> 改成 <packaging>pom</packaging>