Hi Sanjay,
In the first post only I have noticed your <relativePath>../../parent/pom.xml</relativePath>. But I thought you have done this intentionally.
First thing I want to convey is: Maven works on inheritance.
You define your parent pom.xml and then you define dependencies/Sub modules under <modules>.
Now your parent pom packaging should be of type pom in order to make it parent. Parent now know who are his child.
But how would a child/module will define a relationship with parent.
In each module you define
This is what how a child is related to its parent.
Just FYI this is known as cyclic dependency in Maven. Parent <-> child.
If you want to learn more abt maven how does it creates and maintain the structure I would suggest you to read something related to managing multi-module project in maven. Its only 30 minutes guide.
http://scriptlandia.blogspot.com/2006/05/how-to-make-javaee-project-with-maven2.html
Just spend some time on above url. Its a practical guide. Do what the author says and you will know lot of things about Maven which you don't do often.
Thanks and Regards,
Akshat.