zoukankan      html  css  js  c++  java
  • IntelliJ IDEA设置自带的maven为国内镜像

    找到idea中maven中的“settings.xml”位置

    一般在idea安装目录下的“D:Program FilesJetBrainsIntelliJ IDEApluginsmavenlibmaven3conf”

    有maven2和maven3选择

    打开settings.xml,其中查找“<localRepository>”标签

    <localRepository>”标签的注释后面加 自建的maven仓库位置 语句:

    <localRepository>D:Program FilesMaven epository</localRepository>

    查找“<mirrors>”标签

    在“<mirrors>”标签的注释后面 加下面语句:

    <mirror>
    <id>aliyun-public</id>
    <mirrorOf>*</mirrorOf>
    <name>aliyun public</name>
    <url>https://maven.aliyun.com/repository/public</url>
    </mirror>

    <mirror>
    <id>aliyun-central</id>
    <mirrorOf>*</mirrorOf>
    <name>aliyun central</name>
    <url>https://maven.aliyun.com/repository/central</url>
    </mirror>

    <mirror>
    <id>aliyun-spring</id>
    <mirrorOf>*</mirrorOf>
    <name>aliyun spring</name>
    <url>https://maven.aliyun.com/repository/spring</url>
    </mirror>

    <mirror>
    <id>aliyun-spring-plugin</id>
    <mirrorOf>*</mirrorOf>
    <name>aliyun spring-plugin</name>
    <url>https://maven.aliyun.com/repository/spring-plugin</url>
    </mirror>

    更多的AliRepo仓库服务,可以查看https://maven.aliyun.com/mvn/view 获取

     https://maven.aliyun.com/mvn/guide

    Repository
    Type
    Policy
    Path
    apache snapshots
    proxy
    SNAPSHOT
    https://maven.aliyun.com/repository/apache-snapshots
    central
    proxy
    RELEASE
    https://maven.aliyun.com/repository/central
    google
    proxy
    RELEASE
    https://maven.aliyun.com/repository/google
    gradle-plugin
    proxy
    RELEASE
    https://maven.aliyun.com/repository/gradle-plugin
    jcenter
    proxy
    RELEASE
    https://maven.aliyun.com/repository/jcenter
    spring
    proxy
    RELEASE
    https://maven.aliyun.com/repository/spring
    spring-plugin
    proxy
    RELEASE
    https://maven.aliyun.com/repository/spring-plugin
    public
    group
    RELEASE
    https://maven.aliyun.com/repository/public
    releases
    hosted
    RELEASE
    https://maven.aliyun.com/repository/releases
    snapshots
    hosted
    SNAPSHOT
    https://maven.aliyun.com/repository/snapshots
    grails-core
    proxy
    RELEASE
    https://maven.aliyun.com/repository/grails-core
    mapr-public
    proxy
    RELEASE
    https://maven.aliyun.com/repository/mapr-public

     
    请点击仓库查看详情
     
    IEDA中使用maven创建Project过程网络获取时间漫长,Properties中创建

    Name=archetypeCatalog
    Value=internal

    可选择内置仓库优先。

  • 相关阅读:
    Bamboo CI 使用的一些记录
    fork 与 branch、clone 的区别
    使用--ignore-scripts解决npm/yarn安装依赖失败问题
    gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find
    sdk manager 打不开解决方法
    appium
    北京幼升小
    MySQL中limit的问题
    初始社保费管理客户端的单位编号
    flutter BackdropFilter的毛玻璃效果使用
  • 原文地址:https://www.cnblogs.com/com3/p/12408669.html
Copyright © 2011-2022 走看看