I have one repository in GitLab which contains multiple maven projects in different subfolders. For example, let us say it is:
/ProjectA/pom.xml
/ProjectB/pom.xml
I have two questions here:
- Can I configure
.gitlab-ci.yml
so it will runmvn install
on each of these projects? - Can I configure
.gitlab-ci.yml
somehow that it will automatically search forpom.xml
files within the repo and sequentially runmvn install
on all of them?
UPD: I have just started working with GitLab and probably miss some important knowledge. But from what I understand, typically I should have a pom.xml
file located in the root of the repository. Otherwise I should use a trick described here: How to run Maven from another directory (without cd to project dir)?
But this doesn't answer the question about how to run deployment of multiple projects within one repo, and how to automatically search for this projects (if it is possible at all).