Current setup:
- Maven
- Spring Boot
- Angular
- 12 maven project + 1 Pom project
- Git
- Jenkin
Currently i have separate 13 project. Every time if i have to setup on another machine then i have to clone each project individually. Also i did the Jenkin pipeline setup for auto build.
Looking for
- Once i clone the single pom/main project , all other project should get cloned
- If i take pull of the main project then all other projects code should get updated
Child project should get head revision every time i start the jenkin build.
Want to keep separate repo for each sub projects so that it can be reuse in other project as i have multiple requirements.
Solution that i have thought of:
- Maven Child projects
- Git Sub modules
Issues facing in above solution
1. Maven Child projects
--> If we are using maven child projects then we are literally copying the sub projects in pom/main project.
In this case i cannot reuse the project. Every time i have to clone the project to use it.
For big project with number of team member working, merging issue will come.
2. Git Sub modules
--> This is best solution for me but when we create sub module it always point to commit not the head revision.
Every time i have to manually pull the latest code push it to parent project.
This approach we can not use in Jenkins.
Is there best approach which can resolve all the issue.