【发布时间】:2017-05-05 16:24:18
【问题描述】:
我正在使用 gradle v3.4 并尝试将 jar 文件发布到 nexus。 build.gradle 和 error 的相关部分复制如下:
build.gradle
repositories {
maven {
credentials {
username project.properties['nexusUser']
password project.properties['nexusPassword']
}
url project.properties['nexusUrl']
}
mavenLocal()
mavenCentral()
jcenter()
}
我在运行 gradle clean 或 gradle dependencies 时收到以下错误 错误
Could not resolve all dependencies for configuration ':classpath'.
> Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
gradle.properties
nexusUrl="http://nexus.something.com"
nexusUser="someone"
nexusPassword="somepassword"
【问题讨论】:
-
你的属性设置是什么?
-
更新后的帖子 - 我猜这就是问题
标签: java gradle build.gradle nexus