• Maven镜像


    Maven默认配置镜像

    <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默认配置的镜像找不到相应的依赖,可以更换默认配置镜像找到相应依赖再换回来

    (1)未知

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

    (2)  阿里云镜像

    <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>  
          <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>
      <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>  
        <id>repo2</id>  
        <mirrorOf>central</mirrorOf>  
        <name>Human Readable Name for this Mirror.</name>  
        <url>http://repo2.maven.org/maven2/</url>  
    </mirror>

               

  • 相关阅读:
    17. Letter Combinations of a Phone Number
    16. 3Sum Closest
    15. 3Sum
    14. Longest Common Prefix
    13. Roman to Integer
    12. Integer to Roman
    11. Container With Most Water
    10. Regular Expression Matching
    9. Palindrome Number
    8. String to Integer (atoi)
  • 原文地址:https://www.cnblogs.com/xiaohu666/p/11367708.html
Copyright © 2020-2023  润新知