标签:pass https targe inter upload nbsp mirrors pwd mave
(1)Apache官网:https://maven.apache.org
(2)https://pan.baidu.com/s/1Yvv44ICGSxGzMnfyXrZO4A 提取码:j27n
解压即可
(1)<mirrorOf> 的值为 central,表示该配置为中央仓库的镜像。任何对于中央仓库的请求都会转至该镜像
(2)镜像一般都是和私服结合使用
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
(1)<mirrorOf> 的值为星号(*),表示该配置是所有maven仓库的镜像。任何对于远程仓库的请求都会被转至私服(eg:http://192.168.1.100/maven2/)
(2)如果该镜像仓库需要认证,则配置一个 id 为 internal-repository 的 <server> 即可
<settings>
...
<mirrors>
<mirror>
<id>internal-repository</id>
<name>Internal Repository Manager</name>
<url>http://192.168.1.100/maven2</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
...
</settings>
<server>
<id>internal-repository</id> <!-- 某个repository元素配置的id -->
<username>repouser</username>
<password>repopwd</password>
</server>
链接:https://www.jianshu.com/p/ee54d9b342f4
标签:pass https targe inter upload nbsp mirrors pwd mave
原文地址:https://www.cnblogs.com/qiantao/p/11839374.html