请选择
进入手机版
|
继续访问电脑版
设为首页
收藏本站
搜索
本版
帖子
用户
开启辅助访问
切换到宽版
登录
立即注册
找回密码
论坛
首页
精品资源专区
免费资源专区
购买VIP用户组
积分充值
帮助
JAVA
大数据
云计算
WEB前端
移动APP
PHP
Python
淘宝货源
创业技术
自媒体
学习教育
幼教专区
美食技术
文体娱乐
web前端/移动开发
软件测试/物联网/运维
java/大数据/云计算
人工智能/机器学习/区块链
PHP/Python/C/C++
数据库/NOSQ
IT视频教程资源网
»
论坛
›
学习教育资源大全
›
IT 教育培训
›
国内阿里maven仓库镜像maven配置文件maven仓库速度快
返回列表
查看:
119
|
回复:
0
国内阿里maven仓库镜像maven配置文件maven仓库速度快
[复制链接]
admin
admin
当前离线
积分
281535
9万
主题
9万
帖子
28万
积分
管理员
管理员
积分
281535
发消息
发表于 2017-10-2 07:37:11
|
显示全部楼层
|
阅读模式
国内阿里maven仓库镜像maven设置文件maven仓库速度快
国内毗连maven官方的仓库更新依靠库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用。
最新更新:2016年11月11日 18:05:40 阿里云供给Maven私服,我把设置文件贴一下,自己放在maven的conf下就行,setting.xml
https://github.com/ae6623/Zebra/blob/master/maven-repo-settings-ali.xml
xml
version="1.0" encoding="UTF-8"
?>
>
>
settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd
"
>
localRepository
>
/path/to/local/repo
localRepository
>
--
>
localRepository
>
D:\Repositories\Maven
localRepository
>
interactiveMode
>
true
interactiveMode
>
--
>
offline
>
false
offline
>
--
>
>
pluginGroups
>
pluginGroup
>
com.your.plugins
pluginGroup
>
--
>
pluginGroup
>
org.mortbay.jetty
pluginGroup
>
pluginGroups
>
>
proxies
>
proxy
>
id
>
optional
id
>
active
>
true
active
>
protocol
>
http
protocol
>
username
>
proxyuser
username
>
password
>
proxypass
password
>
host
>
proxy.host.net
host
>
port
>
80
port
>
nonProxyHosts
>
local.net|some.host.com
nonProxyHosts
>
proxy
>
--
>
proxies
>
>
servers
>
server
>
id
>
deploymentRepo
id
>
username
>
repouser
username
>
password
>
repopwd
password
>
server
>
--
>
server
>
id
>
siteServer
id
>
privateKey
>
/path/to/private/key
privateKey
>
passphrase
>
optional; leave empty if not used.
passphrase
>
server
>
--
>
server
>
id
>
releases
id
>
username
>
ali
username
>
password
>
ali
password
>
server
>
server
>
id
>
Snapshots
id
>
username
>
ali
username
>
password
>
ali
password
>
server
>
servers
>
>
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
>
nexus
id
>
mirrorOf
>
*
mirrorOf
>
url
>
http://maven.aliyun.com/nexus/content/groups/public/
url
>
mirror
>
mirror
>
>
id
>
nexus-public-snapshots
id
>
mirrorOf
>
public-snapshots
mirrorOf
>
url
>
http://maven.aliyun.com/nexus/content/repositories/snapshots/
url
>
mirror
>
mirrors
>
>
profiles
>
profile
>
id
>
development
id
>
repositories
>
repository
>
id
>
central
id
>
url
>
http://central
url
>
releases
>
enabled
>
true
enabled
>
updatePolicy
>
always
updatePolicy
>
releases
>
snapshots
>
enabled
>
true
enabled
>
updatePolicy
>
always
updatePolicy
>
snapshots
>
repository
>
repositories
>
pluginRepositories
>
pluginRepository
>
id
>
central
id
>
url
>
http://central
url
>
releases
>
enabled
>
true
enabled
>
updatePolicy
>
always
updatePolicy
>
releases
>
snapshots
>
enabled
>
true
enabled
>
updatePolicy
>
always
updatePolicy
>
snapshots
>
pluginRepository
>
pluginRepositories
>
profile
>
profile
>
id
>
public-snapshots
id
>
repositories
>
repository
>
id
>
public-snapshots
id
>