码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 搭建的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仓库了
  • 相关阅读:
    2419. 按位与最大的最长子数组
    快速解决“找不到msvcr120.dll无法执行代码”问题,总结5解决方法
    在pycharm中,使用open3d得到pcd变量无法使用智能函数提示。解决方法
    Redis分布式锁Redisson
    十大经典排序算法(希尔排序、堆排序、计数排序、桶排序和基数排序)
    RocketMQ快速入门_2. rocketmq 的应用场景、与其他mq的差异
    【5GC】5G PDU会话以及会话类型
    3-docker安装centos7
    西门子S7-1200使用LRCF通信库与安川机器人进行EthernetIP通信的具体方法示例
    小迈物联网网关对接串口服务器[Modbus RTU]
  • 原文地址:https://blog.csdn.net/weixin_41926152/article/details/134278750
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号