You can do the following to force maven to use one repo:
<settings> ... <mirrors> <mirror> <id>internal-repository</id> <name>Maven Repository Manager running on https://repo1.maven.org/maven2</name> <url>https://repo1.maven.org/maven2</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors> ... </settings>
You can find more information here .
And also you can use authentication for repo, if you want, the information is here .
user3667171
source share