ERROR - The parent project must have a packaging type of POM while creating a new Maven Module

Error

The parent project must have a packaging type of POM while creating a new Maven Module in Eclipse


Cause

We are trying to create a new sub module whose parent packaging is not POM  

Resolution

Go to the Parent project Pom file and find the following 

 <packaging></packaging>

Make sure that the packaging type specified in POM and not Jar or War.