I want to create my project structure as fallows-
my-main-project
| -- pom.xml
|
|-- project-B
| |-- pom.xml
| |
| |-- project-B1
| |
-- pom.xml
Just create your pom.xml
s the usual way. On the inner ones you can add
<parent>
<groupId>(YOUR GROUP ID)</groupId>
<artifactId>(YOUR ARTIFACT ID)</artifactId>
<version>(YOUR VERSION)</version>
<relativePath>../</relativePath>
</parent>
To make them include the outer one.