gpt4 book ai didi

java - 无法解决 Gradle 依赖项的构建失败异常

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:04:03 24 4
gpt4 key购买 nike

我最近开始研究 github 上提供的 spring 安全教程。我刚刚下载了 zip,当我在 eclipse 中导出项目并尝试“构建模型”时,它在下面给出了异常消息。

Could not resolve all dependencies for configuration ':runtime'.
> Could not resolve com.google.appengine:appengine-tools-sdk:1.4.2.
Required by:
:buildSrc:unspecified
> Could not GET 'http://repo1.maven.org/maven2/com/google/appengine/appengine-tools-sdk/1.4.2/appengine-tools-sdk-1.4.2.pom'. Received status code 407 from server: Proxy Authorization Required
> Could not GET 'http://repository.springsource.com/maven/bundles/release/com/google/appengine/appengine-tools-sdk/1.4.2/appengine-tools-sdk-1.4.2.pom'. Received status code 407 from server: Proxy Authorization Required
> Could not GET 'http://repository.springsource.com/maven/bundles/external/com/google/appengine/appengine-tools-sdk/1.4.2/appengine-tools-sdk-1.4.2.pom'. Received status code 407 from server: Proxy Authorization Required

我刚刚删除了我在 eclipse 网络连接中提供的代理设置,在那种情况下我没有收到任何此类代理授权错误,只是无法解决问题。如果有人知道可能是什么原因?

build.gradle

repositories {
mavenCentral()
maven {
name = 'SpringSource Enterprise Release'
url = 'http://repository.springsource.com/maven/bundles/release'
}
maven {
name = 'SpringSource Enterprise External'
url = 'http://repository.springsource.com/maven/bundles/external'
}
}

dependencies {
compile 'com.google.appengine:appengine-tools-sdk:1.4.2'
}

最佳答案

你有

Proxy Authorization Required

错误字符串中的消息。您可能需要配置您的 Internet 连接代理设置。 (例如在 Internet Explorer -> 工具 -> Internet 选项中)

一般来说,检查提到的二进制文件版本是否真的在 Maven Central 上也是有意义的 http://mvnrepository.com/

关于java - 无法解决 Gradle 依赖项的构建失败异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24379282/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com