zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    雪妖现世:给SAP Fiori Launchpad增添雪花纷飞的效果
    ABAP开发环境语法高亮的那些事儿
    如何使用Prometheus采集SAP ABAP Netweaver的应用日志数据
    如何免费试用SAP的Fiori应用
    使用ABAP绘制可伸缩矢量图
    背景建模
    C# 属性和索引
    Equation
    Phone numbers
    BerOS file system
  • 原文地址:https://www.cnblogs.com/gcgc/p/10478444.html
Copyright © 2011-2022 走看看