Maven Mirror

Maven default configuration mirror

<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>

 

Maven default configuration if no corresponding dependent mirror, the mirror can replace the default configuration and back to back to find the corresponding dependent

(1) Unknown

<mirror>
              <id>mirrorId</id>
              < mirrorOf>central</mirrorOf>
             <name>Human Readable Name for this Mirror.</name>
             <url>http://central.maven.org/maven2/</url>
</mirror>

(2) Ali cloud images

<miror>
             <id>alimaven</id>
             <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
             <mirrorOf>central</mirrorOf> 
</mirror>       

(3) Jboss mirror

<mirror>  
      <id>jboss-public-repository-group</id>  
      <mirrorOf>central</mirrorOf>  
      <name>JBoss Public Repository Group</name>  
   <url>http://repository.jboss.org/nexus/content/groups/public</url>  
</mirror>

(4) Spring.Io mirror

<mirror>
  <id>sprintio</id>
  <mirrorOf>central</mirrorOf>
  <name>Human Readable Name for this Mirror.</name>
 <url>https://repo.spring.io/libs-snapshot/</url>
</mirror>

(5) repo2 mirror

<mirror>  
    <id>repo2</id>  
    <mirrorOf>central</mirrorOf>  
    <name>Human Readable Name for this Mirror.</name>  
    <url>http://repo2.maven.org/maven2/</url>  
</mirror>

 

           

 

Guess you like

Origin www.cnblogs.com/xiaohu666/p/11367708.html