在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