【问题标题】:trying to create maven project getting this error试图创建 Maven 项目得到这个错误
【发布时间】:2020-02-19 14:56:15
【问题描述】:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out

我已经配置了 settings.xml,我已经将 maven 安装到了 eclipse 中,我也配置了 jdk,但无法解决问题,我还添加了远程目录,http://repo1.maven.org/maven2/archetype-catalog.xml 作为 calalog 文件,但面临同样的问题。

【问题讨论】:

  • 尝试构建您的问题,例如:1)您要做什么(我正在尝试创建一个新的 maven 项目)。 2)你做了什么(我运行了命令x y z...)。 3)出了什么问题(我收到了这个错误:...)。 4)格式化你的代码插入。

标签: spring eclipse maven maven-archetype


【解决方案1】:

Maven 无法到达其中心 repo

如果您使用任何代理, 请在settings.xml中配置代理

  <proxies>
    <proxy>
      <id>proxy</id>
      <active>true</active>
      <protocol>your_protocol</protocol>
      <host>your_host</host>
      <port>your_port</port>
    </proxy>

  </proxies>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-10
    • 2011-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多