Well, create a maven folder structure this way
ManiProject
Module 1
Pom.xml </b> Eg: '<project...... <parent> <artifactId>artifactIdMainProject</artifactId> <groupId>groupIdMainProject</groupId> <version>1.0-SNAPSHOT</version> </parent>'
....
src Main test
Module 2 Pom.xml
Eg: '<project...... <parent> <artifactId>artifactIdMainProject</artifactId> <groupId>groupIdMainProject</groupId> <version>1.0-SNAPSHOT</version> </parent>'
....
src Main test
.... Module N
pom.xml
Eg: '<project...... <parent> <artifactId>artifactIdMainProject</artifactId> <groupId>groupIdMainProject</groupId> <version>1.0-SNAPSHOT</version> </parent>'
....
src Main test
pom.xml
`For example: artifactIdMainProject
<groupId>groupIdMainProject</groupId></b> <version>1.0-SNAPSHOT</version></b>
....
<module> Module1 </module></b> <module> Module2</module></b> <module> ModuleN </module></b>
....
Now create a project in Eclipse by selecting the project for the source and specify the path to it,
Then configure the build path, the source tab, add all the modules folders as the source. I consider this address to be all your requirements.
source share