Is it possible to add all the dependent jars on gitlab artifactory for my maven project?

I am trying to build a java maven project on the gitlab pipeline. My project is dependent on some internal jars hosted on our internal server. Is it possible to add these jar files on gitlab artifactory and make it availableto the project during mvn build on the runners

If you upload them to GitLab Package registry, they will be available.