• Maven - 国内 Maven 镜像仓库(加速包,冲冲冲~)


    1. "1.0" encoding="UTF-8" ?>
    2. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    5. <localRepository>E:\JAVA\MavenlocalRepository>
    6. <pluginGroups>
    7. pluginGroups>
    8. <proxies>
    9. proxies>
    10. <servers>
    11. servers>
    12. <mirrors>
    13. <mirror>
    14. <id>alimaven-centralid>
    15. <mirrorOf>centralmirrorOf>
    16. <name>aliyun mavenname>
    17. <url>http://maven.aliyun.com/nexus/content/repositories/central/url>
    18. mirror>
    19. <mirror>
    20. <id>jboss-public-repository-groupid>
    21. <mirrorOf>centralmirrorOf>
    22. <name>JBoss Public Repository Groupname>
    23. <url>http://repository.jboss.org/nexus/content/groups/publicurl>
    24. mirror>
    25. mirrors>
    26. <profiles>
    27. <profile>
    28. <id>jdk18id>
    29. <activation>
    30. <jdk>1.8jdk>
    31. <activeByDefault>trueactiveByDefault>
    32. activation>
    33. <properties>
    34. <maven.compiler.source>1.8maven.compiler.source>
    35. <maven.compiler.target>1.8maven.compiler.target>
    36. <maven.compiler.compilerVersion>1.8maven.compiler.compilerVersion>
    37. properties>
    38. profile>
    39. profiles>
    40. settings>
    • 简单粗暴 settings.xml,飞一般的感觉~

    附:其他常用镜像仓库

    1. <mirror>
    2. <id>alimavenid>
    3. <name>aliyun mavenname>
    4. <url>http://maven.aliyun.com/nexus/content/groups/public/url>
    5. <mirrorOf>centralmirrorOf>
    6. mirror>
    7. <mirror>
    8. <id>alimavenid>
    9. <mirrorOf>centralmirrorOf>
    10. <name>aliyun mavenname>
    11. <url>http://maven.aliyun.com/nexus/content/repositories/central/url>
    12. mirror>
    13. <mirror>
    14. <id>ibiblioid>
    15. <mirrorOf>centralmirrorOf>
    16. <name>Human Readable Name for this Mirror.name>
    17. <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/url>
    18. mirror>
    19. <mirror>
    20. <id>jboss-public-repository-groupid>
    21. <mirrorOf>centralmirrorOf>
    22. <name>JBoss Public Repository Groupname>
    23. <url>http://repository.jboss.org/nexus/content/groups/publicurl>
    24. mirror>
    25. <mirror>
    26. <id>centralid>
    27. <name>Maven Repository Switchboardname>
    28. <url>http://repo1.maven.org/maven2/url>
    29. <mirrorOf>centralmirrorOf>
    30. mirror>
    31. <mirror>
    32. <id>repo2id>
    33. <mirrorOf>centralmirrorOf>
    34. <name>Human Readable Name for this Mirror.name>
    35. <url>http://repo2.maven.org/maven2/url>
    36. mirror>
    • 如果想要换仓库镜像,只需要在 settings.xml 更改 mirror 即可~
  • 相关阅读:
    【rust简单工具理解】
    Scala的函数至简原则
    MySQL锁
    史上最全webpack带你深入了解webpack
    从零带你底层实现unordered_map (1)
    C++算法:全 O(1) 的数据结构
    SpringMVC的执行流程及初始化流程
    【C语言进阶】简易通讯录的实现
    狂神说Docker
    服务端apk打包教程
  • 原文地址:https://blog.csdn.net/Dream_Weave/article/details/134040748