Thanks Akshat.
I am going to follow same directory structure which you explained above but I compare my child pom with your child pom and i came out with question.
How to child pom get the reference of parent pom because you havn't mentioned parent reference in child pom?
Please find below difference between your and my pom. (<relativePath>)
It's your child pom
# <modelVersion>4.0.0</modelVersion>
# <parent>
# <artifactId>secondDemo</artifactId>
# <groupId>com.akki.mvn</groupId>
# <version>1.0</version>
# </parent>
#
# <groupId>com.akki.mvn</groupId>
# <artifactId>jaxb-api</artifactId>
# <version>1.1</version>
# <name>jaxb-api</name>
# <url>
http://maven.apache.org</url>
It's my child pom
<parent>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-parent</artifactId>
<version>1.2.1</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>axis2-maven-plugin</artifactId>
<version>1.2.2</version>
Thanks