The parent project must have a packaging type of POM

When using Maven to add modules in Eclipse, an error is reported: The parent project must have a packaging type of POM

Solution:

Is to change <packaging>jar</packaging> in pom.xml to <packaging>pom</packaging>

See below:

Use the "Overview" view to view, make the following settings:

Switch to the xml view again, and you can see that the packaging has been modified to pom.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343381&siteId=291194637