请选择 进入手机版 | 继续访问电脑版
查看: 119|回复: 0

国内阿里maven仓库镜像maven配置文件maven仓库速度快

[复制链接]

9万

主题

9万

帖子

28万

积分

管理员

管理员

Rank: 9Rank: 9Rank: 9

积分
281535
QQ
发表于 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/repolocalRepository>
  •   -->
  •   localRepository>D:\Repositories\MavenlocalRepository>
  •   interactiveMode>trueinteractiveMode>
  •   -->
  •   offline>falseoffline>
  •   -->
  •   >
  •   pluginGroups>
  •     pluginGroup>com.your.pluginspluginGroup>
  •     -->
  •     pluginGroup>org.mortbay.jettypluginGroup>
  •   pluginGroups>
  •   >
  •   proxies>
  •     proxy>
  •       id>optionalid>
  •       active>trueactive>
  •       protocol>httpprotocol>
  •       username>proxyuserusername>
  •       password>proxypasspassword>
  •       host>proxy.host.nethost>
  •       port>80port>
  •       nonProxyHosts>local.net|some.host.comnonProxyHosts>
  •     proxy>
  •     -->
  •   proxies>
  •   >
  •   servers>
  •     server>
  •       id>deploymentRepoid>
  •       username>repouserusername>
  •       password>repopwdpassword>
  •     server>
  •     -->
  •     server>
  •       id>siteServerid>
  •       privateKey>/path/to/private/keyprivateKey>
  •       passphrase>optional; leave empty if not used.passphrase>
  •     server>
  •     -->
  •     server>
  •         id>releasesid>
  •         username>aliusername>
  •         password>alipassword>
  •       server>
  •       server>
  •         id>Snapshotsid>
  •         username>aliusername>
  •         password>alipassword>
  •       server>
  •   servers>
  •   >
  •   mirrors>
  •     mirror>
  •       id>mirrorIdid>
  •       mirrorOf>repositoryIdmirrorOf>
  •       name>Human Readable Name for this Mirror.name>
  •       url>http://my.repository.com/repo/pathurl>
  •     mirror>
  •      -->
  •     mirror>
  •       
  •       id>nexusid>
  •       mirrorOf>*mirrorOf>
  •       url>http://maven.aliyun.com/nexus/content/groups/public/url>
  •     mirror>
  •     mirror>
  •       >
  •       id>nexus-public-snapshotsid>
  •       mirrorOf>public-snapshotsmirrorOf>
  •       url>http://maven.aliyun.com/nexus/content/repositories/snapshots/url>
  •     mirror>
  •   mirrors>
  •   >
  •   profiles>
  •     profile>
  •       id>developmentid>
  •       repositories>
  •         repository>
  •           id>centralid>
  •           url>http://centralurl>
  •           releases>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>releases>
  •           snapshots>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>snapshots>
  •         repository>
  •       repositories>
  •      pluginRepositories>
  •         pluginRepository>
  •           id>centralid>
  •           url>http://centralurl>
  •           releases>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>releases>
  •           snapshots>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>snapshots>
  •         pluginRepository>
  •       pluginRepositories>
  •     profile>
  •     profile>
  •       
  •       id>public-snapshotsid>
  •       repositories>
  •         repository>
  •           id>public-snapshotsid>
  •           url>http://public-snapshotsurl>
  •           releases>enabled>falseenabled>releases>
  •           snapshots>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>snapshots>
  •         repository>
  •       repositories>
  •      pluginRepositories>
  •         pluginRepository>
  •           id>public-snapshotsid>
  •           url>http://public-snapshotsurl>
  •           releases>enabled>falseenabled>releases>
  •           snapshots>enabled>trueenabled>updatePolicy>alwaysupdatePolicy>snapshots>
  •         pluginRepository>
  •       pluginRepositories>
  •     profile>
  •   profiles>
  •    activeProfiles>
  •     activeProfile>developmentactiveProfile>
  •     activeProfile>public-snapshotsactiveProfile>
  •    activeProfiles>
  • settings>

    收集的仓库以下:
  • #收集的比力快的maven仓库
  • http://maven.wso2.org/nexus/content/groups/public/
  • http://jcenter.bintray.com/
  • http://maven.antelink.com/content/repositories/central/
  • http://nexus.openkoala.org/nexus/content/groups/Koala-release/
  • http://maven.tmatesoft.com/content/groups/public/
  • http://mavensync.zkoss.org/maven2/
  • http://maven.springframework.org/release/

  • mirror>
  •     id>UKid>
  •     name>UK Centralname>
  •     url>http://uk.maven.org/maven2url>
  •     mirrorOf>centralmirrorOf>
  • mirror>
  • mirror>
  •     id>sonatypeid>
  •     name>sonatype Centralname>
  •     url>http://repository.sonatype.org/content/groups/public/url>
  •     mirrorOf>centralmirrorOf>
  • mirror>
  • mirror>
  •     id>jboss-public-repository-groupid>
  •     name>JBoss Public Repository Groupname>
  •     url>http://repository.jboss.org/nexus/content/groups/publicurl>
  •     mirrorOf>centralmirrorOf>
  • mirror>

  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|手机版|IT视频教程资源网 ( 粤ICP备2022015727号 )网站地图

    GMT+8, 2024-4-18 16:09 , Processed in 0.192476 second(s), 24 queries .

    快速回复 返回顶部 返回列表

    客服
    热线

    微信 webshop6
    7*24小时微信 客服服务

    扫码添
    加微信

    添加客服微信 webshop6 获取更多

    关注
    公众号

    关注微信公众号 webjianzhan