本地settings配置(下载jar包不走中央服务器,走本地)

复制代码
<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>/Users/caiyi/.m2/mija</localRepository>

  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>file:///Users/caiyi/.m2/mija</url>
      <layout>default</layout>
    </mirror>
  </mirrors>

  <profiles>
    <profile>
      <id>local</id>
      <repositories>
        <repository>
          <id>local-repo</id>
          <url>file:///Users/caiyi/.m2/mija</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>local-repo</id>
          <url>file:///Users/caiyi/.m2/mija</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>local</activeProfile>
  </activeProfiles>

</settings>
相关推荐
Black蜡笔小新1 天前
国标GB28181视频监控平台EasyCVR赋能平安乡村建设,构筑乡村治理“数字防线”
java·网络·音视频
蚰蜒螟1 天前
从 pthread_create 到 thread_native_entry:glibc 如何唤醒 Java 线程
java·开发语言
callJJ1 天前
JVM 类加载机制详解——从 .class 文件到对象诞生的完整旅程
java·jvm·类加载·双亲委派模型
Kiling_07041 天前
Java Math类核心用法全解析
java·开发语言
踏着七彩祥云的小丑1 天前
开发中用到的注解
java
小梦爱安全1 天前
Ansible剧本1
java·网络·ansible
pupudawang1 天前
Spring Boot 热部署
java·spring boot·后端
我登哥MVP1 天前
【SpringMVC笔记】 - 9 - 异常处理器
java·spring boot·spring·servlet·tomcat·maven
下地种菜小叶1 天前
Spring Boot 2.x 升级 3.x / 4.x 怎么做?一次讲清 JDK、Jakarta、依赖兼容与上线策略
java·spring boot·后端
iiiiyu1 天前
常用API(StringJoiner类 & Math类 & System类)
java·大数据·开发语言·数据结构·编程语言