阿里Maven仓库 -- Settings.xml

国内连接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






<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>D:\Repositories\MavenlocalRepository>

  

  

  
  <pluginGroups>
    
    <pluginGroup>org.mortbay.jettypluginGroup>
  pluginGroups>

  
  <proxies>
    
  proxies>

  
  <servers>
    

    
    <server>
        <id>releasesid>
        <username>aliusername>
        <password>alipassword>
      server>
      <server>
        <id>Snapshotsid>
        <username>aliusername>
        <password>alipassword>
      server>
  servers>

  
  <mirrors>
    
    <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>

你可能感兴趣的:(maven,阿里,库,maven)