zoukankan      html  css  js  c++  java
  • maven指定本地仓库和阿里云镜像设置

    一、指定本地仓库

      1、本机新建一个文件夹当做本地仓库

        博主的是:D:learnjavamaven-repository

      2、在maven的conf目录下的在settings.xml中添加localRepository标签

    <?xml version="1.0" encoding="UTF-8"?>
    
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <!-- localRepository
       | The path to the local repository maven will use to store artifacts.
       |
       | Default: ${user.home}/.m2/repository
      <localRepository>/path/to/local/repo</localRepository>
      -->
      <localRepository>D:learnjavamaven-repository</localRepository>

      

    二、阿里云镜像配置

      在settings.xml文件中的mirrors下添加mirror标签

      <mirrors>
         <mirror>
          <id>aliyun-maven</id>
          <mirrorOf>central</mirrorOf>
          <name>aliyun maven mirror</name>
          <url>https://maven.aliyun.com/repository/central</url>
        </mirror>
      </mirrors>
    知道、想到、做到、得到
  • 相关阅读:
    笨办法42物以类聚(补充40)
    笨办法41来自 Percal 25 号行星的哥顿人-randint-exit(0)
    nginx模块1--索引autoindex_基于ip_监控模块status
    selinux
    nginx安装与配置--基础
    svn安装
    docker-registry私有registry
    zabbix钉钉报警
    zabbix字体
    zabbix告警
  • 原文地址:https://www.cnblogs.com/Durant0420/p/14815618.html
Copyright © 2011-2022 走看看