• 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

  • 相关阅读:
    OC
    OC
    OC
    OC
    OC
    Oracle wm_concat()函数
    字符串拼接
    easyui扩展数据表格点击加号拓展
    子tab里面新增tab(top.jQuery)
    combox datagrid重复请求问题
  • 原文地址:https://www.cnblogs.com/gcgc/p/10478444.html
Copyright © 2020-2023  润新知