• maven项目搜索依赖jar包顺序


    local_repo  >  settings_profile_repo  >  pom_profile_repo  >  pom_repositories  >  settings_mirror  >  central

    1、本地仓库 /root/.m2/repository

    2、/root/.m2/settings.xml文件中配置的 <repositories>标签

      

    <profiles>
      <profile>
      <id>s_profile</id>
      <repositories>
        <repository>
          <id>settings_profile_repo</id>
          <name>netease</name>
          <url>http://mirrors.163.com/maven/repository/maven-public/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      </profile>
    </profiles>

    3、项目pom.xml文件中配置的 <profile>标签

    <profiles>
      <profile>
        <id>p_profile</id>
        <repositories>
          <repository>
            <id>pom_profile_repo</id>
            <name>local</name>
            <url>http://10.18.29.128/nexus/content/groups/public/</url>
            <releases>
              <enabled>true</enabled>
            </releases>
            <snapshots>
              <enabled>true</enabled>
            </snapshots>
          </repository>
        </repositories>
      </profile>
    </profiles>

    4、项目pom.xml文件中配置的 <repositories>标签

    <repositories>
      <repository>
        <id>pom_repositories</id>
        <name>local</name>
        <url>http://10.18.29.128/nexus/content/groups/public/</url>
        <releases>
          <enabled>true</enabled>
        </releases>
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
      </repository>
    </repositories>

    5、/root/.m2/settings.xml文件中配置的 <mirror>标签

    <settings>
      <mirrors>
        <mirror>
          <id>settings_mirror</id>
          <url>https://maven.aliyun.com/repository/public</url>
          <mirrorOf>central</mirrorOf>
        </mirror>
      </mirrors>
    </settings>

    6、中央仓库

    参考:https://blog.csdn.net/asdf8968/article/details/83182859

  • 相关阅读:
    SQL学习_WHERE 数据过滤
    SQL学习_SELECT
    读书笔记之_Win10 与Jmeter5.1.1界面兼容:
    appium+python搭建自动化测试框架_TestAPP框架(三)
    appium+python搭建自动化测试框架_Tools安装(一)
    总目录
    解决IntelliJ IDEA卡顿的方法
    SQL Server
    OBDC无法创建sql server连接
    常见问题
  • 原文地址:https://www.cnblogs.com/gcgc/p/10478444.html
Copyright © 2020-2023  润新知