I have a laptop which I can connect to the internet, and has downloaded all my maven dependencies into my .m2/repository. We have some PCs and some servers which cannot connect to the internet, and the PCs will need to compile and run Java code. So I'm thinking, I can install Nexus on one of the servers (even though it has no internet) and point all the PCs at that. Problem solved.
However, I have about 8000 dependencies in my local repository and don't particularly want to upload them one by one either via the GUI or using 'mvn deploy'. Is there a way to wholesale upload my entire local repository onto a Nexus server?
The closest answer I have found is here:
Running Maven and Sonatype Nexus while offline with no internet connection
"It's possible to upload the contents of your local repository to the Nexus server's storage area."
Specifically, how would I do that? I have had problems in the past where either the SHA1 file or some other metadata prevented it from working properly after I tried it. Any suggestions much appreciated!