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.ymlso it will runmvn installon each of these projects? - Can I configure
.gitlab-ci.ymlsomehow that it will automatically search forpom.xmlfiles within the repo and sequentially runmvn installon 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).