Package registry for maven packages in offline gitlab env

Hello,
My gitlab env is offline env with no internet access and i have one maven module with some common functions in other project repo and dependencies jars in another project repo. How we can maven clean install (to build) in this offline env with dependencies to be part of package registry.
Looking for suggestions if anyone has done similar setup before.

Thanks,