zoukankan      html  css  js  c++  java
  • maven本地仓库配置到指定目录和中央仓库镜像的相关配置

    一、本地仓库的配置

    1. 在maven的解压目录,找到settings.xml文件(如:D:Program Filesapache-maven-3.6.3confsettings.xml)

    找到如下的位置添加以下内容:

    <!-- 将本地仓库(jar包目录)配置到指定路径(*可以不进行配置,默认在C盘)-->
    <localRepository>D:myFilesapache-maven-3.6.3 epository</localRepository>

     二、配置中央仓库镜像,这里换成了阿里的(国内的镜像比较稳定)

    1. settings.xml文件中,在mirrors标签中添加子标签如下内容就可以了;

    <mirror>      
         <id>nexus-aliyun</id>    
         <name>nexus-aliyun</name>  
          <url>http://maven.aliyun.com/nexus/content/groups/public</url>    
          <mirrorOf>central</mirrorOf>      
     </mirror>
  • 相关阅读:
    Google 嘘! 嘘!
    zabbix fast
    zabbix
    kernel update
    列表推导
    Ddos 反射性防护 simple
    file cycle
    Scala
    Hadoop
    数据库
  • 原文地址:https://www.cnblogs.com/damoblog/p/12666561.html
Copyright © 2011-2022 走看看