Nexus Repository

@bingoogolapple 2017-05-23 10:39:59发表于 bingoogolapple/bingoogolapple.github.io 工具软件开发环境

Nexus Repository OSS

初始用户名:admin
初始密码:admin123

配置文件 etc/nexus-default.properties

repositories -> Create repository -> maven2(hosted)

library

uploadArchives {
    repositories.mavenDeployer {
        repository(url: "http://localhost:8081/repository/bgatest/") {
            authentication(userName: "bingoogolapple", password: "xxxxxxx")
        }
        pom.version="0.0.1"
        pom.artifactId="nexusaar"
        pom.groupId="cn.bingoogolapple"
    }
}

app

repositories {
    maven {
        url "http://localhost:8081/repository/bgatest/"
    }
}