How to know the directory where codes were committed in gitlab-ci.yml?

Hello All,
By gitlab-ci, I want to run maven to build and deploy.
but in the gitlab project repository, there are many sub directories which includes each pom.xml file defining build and deploy.
So I need to move to the directory of pom file before running maven.
Let’s imagine the only pom.xml file is committed, then is there any way to specify the directory path to move there in gitlab-ci.yml?

Thanks in advance,