【问题标题】:Unable to download from github or google - through Eclipse Juno无法从 github 或 google 下载 - 通过 Eclipse Juno
【发布时间】:2013-04-19 15:02:15
【问题描述】:

在 Eclipse Juno 中单击“Spring 模板项目”时出现以下错误

Error while downloading or parsing descriptors file 'https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml':

org.eclipse.core.runtime.CoreException: Error while retrieving https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml

这是日志:

!ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2013-04-25 08:39:20.295 !MESSAGE 未找到存储库 http://geronimo.apache.org/devtools/。 !会话 2013-04-25 08:42:08.969 ----------------------------------------------------------- eclipse.buildId =M20130204-1200 java.version=1.7.0_21 java.vendor=Oracle Corporation BootLoader 常量:OS=win32, ARCH=x86_64, WS=win32, NL=en_US 框架参数:-product
org.eclipse.epp.package.jee.product-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient -Dhttp.proxyPort=80 -Dhttp.proxyHost=XXXXXXXXX -Dhttp.proxyUser=XXXXXXXXXXXX -Dhttp.proxyPassword=XXXXXXXXXXXX -Dhttp.nonProxyHosts=localhost|127.0.0.1 -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse .ecf.provider.filetransfer.httpclient 命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient -Dhttp.proxyPort=80 -Dhttp.proxyHost=XXXXXXXXXX -Dhttp.proxyUser=XXXXXXXXXXXX -Dhttp.proxyPassword=XXXXXXXXXXXX -Dhttp.nonProxyHosts=localhost|127.0.0.1 -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse .ecf.provider.filetransfer.httpclient

!ENTRY org.eclipse.egit.ui 2 0 2013-04-25 08:42:18.304 !MESSAGE 警告:EGit 无法检测到安装路径“gitPrefix”的 本地 Git。因此 EGit 不能尊重系统级 Git 设置 可能在原生 Git 下的 ${gitPrefix}/etc/gitconfig 中配置 安装目录。这些设置中最重要的是 核心.autocrlf。 Git for Windows 默认将此参数设置为 true 在此系统级配置中。 Git安装位置可以 在团队 > Git > 配置首选项页面上进行配置 “系统设置”选项卡。可以在 Team 上关闭此警告 > Git > 确认和警告首选项页面。

!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2013-04-25 08:42:19.654 !MESSAGE 项目方面 grails.app 尚未定义。 它用于插件com.vmware.vfabric.ide.eclipse.tcserver.core。

!ENTRY org.eclipse.osgi 2 1 2013-04-25 08:42:23.523 !MESSAGE NLS 未使用的消息:CacheManager_CannotLoadNonUrlLocation 在: org.eclipse.equinox.internal.p2.repository.messages

Sooo,我的问题是:我无法从 github 下载,而且我还从 google(适用于 android)获得以下内容:

无法在以下位置读取存储库 https://dl-ssl.google.com/android/eclipse/content.xml。 java.util.NoSuchElementException

我认为这个问题是相关的,但……不确定。我已调整 eclipse.ini 文件以包含代理设置(我正在工作 - 该设置已在日志中替换为 XXXXXXXXXX)。 任何建议将不胜感激!

【问题讨论】:

    标签: java android eclipse github


    【解决方案1】:

    URL 方案是 HTTPS,而您的代理设置仅是 HTTP。

    您也应该尝试设置 HTTPS 设置:

     -Dhttps.proxyPort=80 -Dhttps.proxyHost=XXXXXXXXXX -Dhttps.proxyUser=XXXXXXXXXXXX -Dhttps.proxyPassword=XXXXXXXXXXXX -Dhttps.nonProxyHosts=localhost|127.0.0.1
    

    此外,您可能应该使用首选项菜单(窗口 > 首选项 > 常规 > 网络连接)来配置它。

    【讨论】:

      猜你喜欢
      • 2021-07-01
      • 1970-01-01
      • 2013-12-03
      • 2012-07-16
      • 2012-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多