eumji025 / common-resource

记录公共资源的仓库
MIT License
0 stars 0 forks source link

maven gradle 镜像配置 #1

Open eumji025 opened 5 years ago

eumji025 commented 5 years ago

maven的配置


    <mirror>
        <id>aliyunmaven</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库</name>
        <url>https://maven.aliyun.com/repository/public</url>
    </mirror>

    <mirror>
        <id>aliyunmaven2</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-google</name>
        <url>https://maven.aliyun.com/repository/google</url>
    </mirror>

     <mirror>
        <id>aliyunmaven3</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-gradle</name>
        <url>https://maven.aliyun.com/repository/gradle-plugin</url>
    </mirror>

    <mirror>
        <id>aliyunmaven4</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-spring</name>
        <url>https://maven.aliyun.com/repository/spring</url>
    </mirror>

    <mirror>
        <id>aliyunmaven5</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-spring-plugin</name>
        <url>https://maven.aliyun.com/repository/spring-plugin</url>
    </mirror>

    <mirror>
        <id>aliyunmaven6</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-apache</name>
        <url>https://maven.aliyun.com/repository/apache-snapshots</url>
    </mirror>
eumji025 commented 5 years ago

gralde配置

repositories {
        maven { url "https://maven.aliyun.com/repository/public" }
    maven{ url "https://maven.aliyun.com/repository/jcenter"}
    maven{ url "https://maven.aliyun.com/repository/google"}
    maven{ url "https://maven.aliyun.com/repository/gradle-plugin"}
    maven{ url "https://maven.aliyun.com/repository/spring"}
    maven{ url "https://maven.aliyun.com/repository/spring-plugin"}
    maven{ url "https://maven.aliyun.com/repository/grails-core"}
    maven{ url "https://maven.aliyun.com/repository/apache-snapshots"}
    mavenLocal()
    mavenCentral()
    }
eumji025 commented 5 years ago

参考URL https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.361865e9VxTCum