【问题标题】:why the project pom.xml is showing this Non-Resolvable error为什么项目 pom.xml 显示此 Non-Resolvable 错误
【发布时间】:2019-02-20 23:37:55
【问题描述】:

【问题讨论】:

  • 您似乎遇到了网络问题(超时)我假设您在代理/防火墙后面?
  • 你能把完整的 pom.xml 添加到这里吗?

标签: spring maven pom.xml


【解决方案1】:

我认为问题在于您使用的是spring boot的快照版本,并且这些依赖项在maven Central上不可用,因此必须添加额外的存储库地址。

在 pom.xml 的 <project> 组件中添加以下 sn-ps

<repositories>
    <repository>
        <id>spring-snapshots</id>
        <name>Spring Snapshots</name>
        <url>https://repo.spring.io/snapshot</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>https://repo.spring.io/milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

【讨论】:

    猜你喜欢
    • 2021-08-22
    • 1970-01-01
    • 2010-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-06
    • 2013-11-24
    • 2013-09-14
    相关资源
    最近更新 更多