• 搭建的maven仓库如何在本地配置maven下载仓库以及仓库下载优先级


    1. 打开maven的settings.xml文件
    2. 首先可配置maven的本地仓库路径
      1.   <localRepository>D:\java\apache-maven-3.6.3\resourceRootlocalRepository>
    3. 配置自己搭建的maven的服务名以及账号密码
        1. <server>
        2. <id>xxxxServerid>
        3. <username>xxxxusername>
        4. <password>xxxxxpassword>
        5. server>
    4. 配置镜像地址信息列表
        1. <mirror>
        2. <id>xxxxServerid>
        3. <mirrorOf>xxxxServermirrorOf>
        4. <url>http://xxxxxxxxxx/xxxx/repository/internalurl>
        5. mirror>
        6. <mirror>
        7. <id>alimavenid>
        8. <url>https://maven.aliyun.com/repository/publicurl>
        9. <mirrorOf>centralmirrorOf>
        10. mirror>
        11. <mirror>
        12. <id>nexus-aliyunid>
        13. <mirrorOf>centralmirrorOf>
        14. <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
        15. mirror>
    5. 配置仓库下载优先级
        1. <profile>
        2. <id>nexusid>
        3. <repositories>
        4. <repository>
        5. <id>xxxxServerid>
        6. <url>http://xxxxxx/xxxxxx/repository/internalurl>
        7. <snapshots>
        8. <enabled>falseenabled>
        9. snapshots>
        10. <releases>
        11. <enabled>trueenabled>
        12. releases>
        13. repository>
        14. <repository>
        15. <id>nexus-aliyunid>
        16. <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
        17. <snapshots>
        18. <enabled>falseenabled>
        19. snapshots>
        20. <releases>
        21. <enabled>trueenabled>
        22. releases>
        23. repository>
        24. <repository>
        25. <id>alimavenid>
        26. <url>https://maven.aliyun.com/repository/publicurl>
        27. <releases>
        28. <enabled>trueenabled>
        29. releases>
        30. <snapshots>
        31. <enabled>trueenabled>
        32. snapshots>
        33. repository>
        34. repositories>
        35. <pluginRepositories>
        36. <pluginRepository>
        37. <id>xxxxServerid>
        38. <url>http://xxxxxxxx/xxxxxxx/repository/internalurl>
        39. <snapshots>
        40. <enabled>falseenabled>
        41. snapshots>
        42. <releases>
        43. <enabled>trueenabled>
        44. releases>
        45. pluginRepository>
        46. <pluginRepository>
        47. <id>nexus-aliyunid>
        48. <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
        49. <snapshots>
        50. <enabled>falseenabled>
        51. snapshots>
        52. <releases>
        53. <enabled>trueenabled>
        54. releases>
        55. pluginRepository>
        56. <pluginRepository>
        57. <id>alimavenid>
        58. <url>https://maven.aliyun.com/repository/publicurl>
        59. <releases>
        60. <enabled>trueenabled>
        61. releases>
        62. <snapshots>
        63. <enabled>trueenabled>
        64. snapshots>
        65. pluginRepository>
        66. pluginRepositories>
        67. profile>
    6. 设置活跃配置
        1. <activeProfiles>
        2. <activeProfile>nexusactiveProfile>
        3. activeProfiles>
    7. 然后在项目中配置好当前的maven的settings.xml就可以愉快的使用maven仓库了
  • 相关阅读:
    Nginx之Tengine主动健康检查解读
    【c++百日刷题计划】 ———— DAY18,刷题百天,养成刷题好习惯
    程序地址空间
    07-JS时间对象
    聊聊基于Alink库的随机森林模型
    代码随想录-算法训练营day55【动态规划16:两个字符串的删除操作、编辑距离、编辑距离总结篇】
    PSCAD X4.6.2 免费下载
    工业检测 ocr
    思科网络模拟器EVE安装(附安装包)
    一文能读懂车载与Android的关系
  • 原文地址:https://blog.csdn.net/weixin_41926152/article/details/134278750