zoukankan      html  css  js  c++  java
  • gradle 使用maven repository 的设置

    repositories {
        //Maven中心库(http://repo1.maven.org/maven2)
        mavenCentral()

        //本地库,local repository(${user.home}/.m2/repository)
        mavenLocal()

        //指定库
        maven {
            url "http://repo.mycompany.com/maven2"
        }

        //指定库
        mavenRepo name: reponame', url: "http://repo.mycompany.com/maven2"

        //指定库
        maven {
            // Look for POMs and artifacts, such as JARs, here
            url "http://repo2.mycompany.com/maven2"
            // Look for artifacts here if not found at the above location
            artifactUrls "http://repo.mycompany.com/jars"
            artifactUrls "http://repo.mycompany.com/jars2"
        }

        //带认证的库
        maven {
            credentials {
                username 'user'
                password 'password'
            }
            url "http://repo.mycompany.com/maven2"
        }
    }

  • 相关阅读:
    linux I2C 读写 tlv320dac3100
    ubuntu lfs
    安装和使用花生壳(linux)
    vim 配置
    vim
    gnome2 恢复默认 panel
    ubuntu 挂在 jffs2 文件
    gstreamer 播放
    gstreamer 环境变亮设置
    探讨【IGE】的源代码【五】。
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/11981132.html
Copyright © 2011-2022 走看看