国内阿里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>always |