Maven阿里云的中央仓库
2017-09-08 20:17
357 查看
修改maven根目录下的conf文件夹中的settings.xml文件:
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
//注释上面内容,添加以下内容
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
//注释上面内容,添加以下内容
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
相关文章推荐
- maven阿里云中央仓库
- 阿里云提供的maven中央仓库镜像设置
- [Maven]阿里云Maven中央仓库配置
- Maven 中阿里云镜像替代中央仓库
- Maven镜像更换为阿里云中央仓库
- 设置阿里云maven中央仓库的settings.xml
- maven 阿里云 国内镜像 中央仓库
- maven镜像 阿里云中央仓库
- maven阿里云中央仓库
- Maven镜像更换为阿里云中央仓库
- maven阿里云中央仓库
- Maven 阿里云 中央仓库
- maven阿里云中央仓库
- 阿里云Maven中央仓库配置
- 好用的maven中央仓库,阿里云提供
- maven下载速度太慢(换成阿里云的maven中央仓库)
- maven 阿里云 国内镜像 中央仓库 亲测可用
- maven阿里云中央仓库
- Maven 中央仓库及阿里云仓库地址
- maven 阿里云 中央仓库