在Ubuntu上,gradle这个版本2.10构建失败与摇篮
我下载elasticsearch并想建立
gradle build
结果:
A problem occurred configuring root project 'buildSrc'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.bmuschko:gradle-nexus-plugin:2.3.1.
Required by:
:buildSrc:unspecified
> Could not resolve com.bmuschko:gradle-nexus-plugin:2.3.1.
> Could not get resource 'https://jcenter.bintray.com/com/bmuschko/gradle-nexus-plugin/2.3.1/gradle-nexus-plugin-2.3.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/bmuschko/gradle-nexus-plugin/2.3.1/gradle-nexus-plugin-2.3.1.pom'.
> peer not authenticated
如果我只是尝试通过下载这个POM浏览器或wget,访问它没有问题。
我发现了很多类似的问题/这类错误的帖子,但到目前为止我无法解决这个问题。我需要做些什么来解决这个问题?
你能告诉你的'构建.gradle'?它看起来像你需要添加凭证到nexus插件库 – TheoKanning
'build.gradle'从这里:https://github.com/elastic/elasticsearch/blob/master/build.gradle。这听起来不对,它需要使用凭据来访问插件。同样如上所述'wget'-ing没有。 – tokosh
你是否在代理之后? – RaGe