【问题标题】:Maven repository: connection timeoutMaven 存储库:连接超时
【发布时间】:2014-06-06 02:08:02
【问题描述】:

无法从http://repo.aduno-software.com 存储库下载任何工件(连接超时)。问题持续数周。

该回购是否有任何替代品,并且可能有人知道该向谁投诉服务器的服务中断状况?

我已经尝试了许多不同的 maven 存储库,但它们甚至都无法涵盖我项目的所有依赖项,而上述的却可以。

【问题讨论】:

  • 我不确定您为什么会收到超时错误。那个域名does not exist。另外,请注意标签不是关键字。在标签列表中塞满与您的问题中相同的单词将无助于对其进行分类。请务必阅读选择标签时出现的说明!
  • 感谢您对标签的建议。会记住的!域名有错字 - 正确的是:repo.aduna-software.org。但无论如何,由于连接超时,这没有任何区别。有没有真正的替代品?

标签: maven


【解决方案1】:

请注意,这种解决方法有点 hacky,它可能仅在数据也可从其他存储库中获得时才有效。 这是我想出的(Maven 文档解释了所有这些设置):

    1。在 Maven 目录下找到设置 xml。 在 Windows 上,它在 conf\settings.xml 下
    2。在设置文件中添加镜像:
  <mirrors>
<!-- mirror
 | Specifies a repository mirror site to use instead of a given repository. The repository that
 | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
 | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
 |
<mirror>
  <id>mirrorId</id>
  <mirrorOf>repositoryId</mirrorOf>
  <name>Human Readable Name for this Mirror.</name>
  <url>http://my.repository.com/repo/path</url>
</mirror>
 -->
<mirror>
  <id>ibiblio.org</id>
  <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
  <mirrorOf>central</mirrorOf>
</mirror>
<mirror>
 <id>ibiblio.net</id>
  <url>http://www.ibiblio.net/pub/packages/maven2</url>
  <mirrorOf>http://repo.aduna-software.org/maven2/releases/</mirrorOf>
</mirror>
<mirror>
  <id>uk.maven.org</id>
  <url>http://uk.maven.org/maven2</url>
  <mirrorOf>central</mirrorOf>
</mirror>

    3。要确保与 repo.aduna-software.org 的连接快速超时,请添加
    127.0.0.1 repo.aduna-software.org 
    到你的主机文件

镜像条目的顺序很重要 - maven 首先尝试第一个镜像,因此您可能需要调整它。

【讨论】:

    猜你喜欢
    • 2017-06-04
    • 2017-10-02
    • 1970-01-01
    • 2014-02-09
    • 1970-01-01
    • 2019-08-30
    • 1970-01-01
    • 2015-03-20
    • 2017-01-20
    相关资源
    最近更新 更多