我最近开始研究github上提供的spring安全教程。我刚刚下载了zip,当我在eclipse中导出项目并尝试了#34; Build Model"它给了我下面的例外信息。
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'
}
答案 0 :(得分:1)
你有
错误字符串中的需要代理授权
消息。您可能需要配置Internet连接代理设置。 (例如,在Internet Explorer中 - >工具 - > Internet选项)
一般来说,检查所提到的二进制版本是否真的在Maven Central上http://mvnrepository.com/
是有意义的。