Groovy grape 无法解决 Maven Central 中的工件

Groovy grape not resolving artifacts in Maven central

Groovy 的全新安装,出于某种原因,它没有从 Maven 中心提取工件:

$ grape resolve org.apache.httpcomponents httpclient 4.2.1
Error in resolve:
    Error grabbing Grapes -- [download failed: org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar, download failed: org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]

完成-d调试日志: https://gist.github.com/mrobinet/a86073e35771cab55665

环境:

$ groovy --version
Groovy Version: 2.4.4 JVM: 1.7.0_79 Vendor: Oracle Corporation OS: Mac OS X

工件显然存在: https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.2/

我尝试过的事情:

查看调试输出,它甚至没有向中央请求它。

我最近 运行 再次进入这个问题并且能够找出问题所在。我最终用 Groovy 提交了一个错误:https://issues.apache.org/jira/browse/GROOVY-8655

当您的 Maven 本地存储库中只有工件的 POM 文件(没有 jar 文件)时,就会出现问题。