gpt4 book ai didi

java - Spring 试图从里程碑存储库中提取快照

转载 作者:行者123 更新时间:2023-11-30 08:08:58 24 4
gpt4 key购买 nike

正在尝试构建 https://github.com/spring-projects/spring-social-samples/tree/master/spring-social-showcase-boot

gradle build --info

产生

Resource missing. [HTTP GET: http://repo.spring.io/milestone/org/springframework/social/spring-social-config/1.2.0.BUILD-SNAPSHOT/spring-social-config-1.2.0.BUILD-SNAPSHOT.pom]

如果我只是在我的浏览器中输入...资源存在于这个(快照)url

http://repo.spring.io/snapshot/org/springframework/social/spring-social-config/1.2.0.BUILD-SNAPSHOT/spring-social-config-1.2.0.BUILD-SNAPSHOT.pom

关于如何让 gradle 转到正确的(快照)url 有什么想法吗?

最佳答案

快照存储库丢失

我最初对 spring-boot gradle 插件存储库和项目存储库感到困惑

//for plugin
buildscript {
repositories {
maven { url "http://repo.spring.io/libs-milestone" }
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
...

//for project
repositories {
mavenLocal()
//added missing snapshot repository
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
mavenCentral()
maven { url "http://repo.spring.io/libs-milestone" }
}

关于java - Spring 试图从里程碑存储库中提取快照,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32791558/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com