我正试图从Android工作室的gradle获取nexus资源,就像在Build.gradle上那样:
releaseCompile 'com.cpn.mfs.asm:artifact:1.2.1:release'
和那样:
allprojects {
repositories {
jcenter()
mavenLocal()
maven {
credentials {
username "$mavenUser"
password "$mavenPassword"
}
url "https://NexusServer.cmp.com/content/repositories/..../"
}
但我有这个错误:
Error: A problem occurred configuring project ': XXX'.
> Could not GET 'https://NexusServer.cmp.com/content/repositories/...../artifact-1.2.1.pom'.
> peer not authenticated
我已经在java密钥库中导入了证书,但问题仍然存在。
当我尝试使用浏览器访问时,我可以下载jar,任何人都可以提供帮助吗?
由于