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.