scene
- in the company, do the company"s project A, use the company"s private server.
- when you are at home, if you want to play with other project B, you should go to setting.xml to change the image setting to a public warehouse .
does maven provide any function to set the remote warehouse address for a project separately? when I was working on the A project in the company, he went to the company"s private server to download the jar package. When you are at home, you can"t connect to the company"s intranet, so use a public warehouse (such as Aliyun, etc.).
I don"t know how to implement it.
<mirrors>
<!-- <mirror>
<id>releases</id>
<mirrorOf>central</mirrorOf>
<name>Team Nexus Repository</name>
<url>http://192.168.0.222:8081/nexus/content/groups/public</url>
</mirror> -->
<mirror>
<id>aliyun</id>
<name>aliyun-public</name>
<mirrorOf>central</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>