setting配置,引入阿里的maven仓库

Posted lcs-java

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了setting配置,引入阿里的maven仓库相关的知识,希望对你有一定的参考价值。

  <mirrors>
    <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>

    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
  </mirrors>



以上是关于setting配置,引入阿里的maven仓库的主要内容,如果未能解决你的问题,请参考以下文章

maven的setting配置文件中mirror和repository的区别

Maven项目settings.xml的配置

阿里云中央仓库配置

阿里云仓库

20180602_Eclipse配置Maven的本地仓库和阿里云镜像

maven配置阿里云镜像仓库