开发者社区 问答 正文

无法下载SpringBoot 2.0.0.M3和SpringCloud Finchley.M2

无法下载SpringBoot 2.0.0.M3和SpringCloud Finchley.M2

展开
收起
montos 2020-05-28 16:48:45 456 分享 版权
1 条回答
写回答
取消 提交回答
  • 解决: + 在pom.xml文件里加上如下代码(可参考product的pom.xml):

    <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>
     
    <pluginRepositories>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
    
    • 若在自己配置了国内maven库镜像后无法下载以上版本,则请将镜像注释掉,用maven默认的中央仓库下载(如果觉得太慢,就用科学上网)
    2020-05-28 19:43:27
    赞同 展开评论