Artifactory Remote Repository(Maven Central) - 未经授权

时间:2015-09-24 10:01:20

标签: repository artifactory maven-central

我尝试配置Artifactory(2.6.4 rev.13153)以将Maven Central用作远程存储库。为此,我配置了远程存储库(请参见下面的屏幕截图)。在gradle.build中我配置了:

repositories {
    maven {
        url artifactoryBaseUrl + 'build-libs'
    }
    maven {
        url artifactoryBaseUrl + 'mcentral'
    }
}

使用Artifactory的简单浏览器,我可以使用我的远程仓库浏览Maven Central" mcentral"但是在运行gradle时出现错误:

D:\...\at.mic.all.hermes>gradle build
:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.apache.myfaces.trinidad:trinidad-impl:1.0.13.
Required by:
  at.mic.all.hermes:at.mic.all.hermes:20150924104503

> Could not GET 'http://mic-build2.mic.co.at:8082/artifactory/mcentral/org/apache/myfaces/trinidad/trinidad-impl/1.0.13/trinidad-impl-1.0.13.pom'. Received status code 401 from server: Unauthorized

BUILD FAILED

任何想法我做错了什么?我非常感谢任何帮助。谢谢!

弗兰克

屏幕:

enter image description here enter image description here

0 个答案:

没有答案