gpt4 book ai didi

gradle - 无法使用无效的网址解析Gradle依赖项的 'spring-boot-starter-request-jpa'

转载 作者:行者123 更新时间:2023-12-03 05:59:31 26 4
gpt4 key购买 nike

我对spring-boot-starter-request-jpa有依赖性。似乎该依赖项试图使用无效的URL进行解析。

Error:Could not find org.springframework.boot:spring-boot-starter-request-jpa:.
Searched in the following locations:
https://jcenter.bintray.com/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom
https://jcenter.bintray.com/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.jar
https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom
https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.jar
file:/Users/*removed*/.m2/repository/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom
file:/Users/*removed*/.m2/repository/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.jar
http://server.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom
http://server.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.jar
Required by:
project :MobileAPI
我的gradle配置大约12个小时前运行良好,没有任何更改。
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
url "${nexusRepoUrl}"
}
}
错误中,它使用 https://jcenter.bintray.com/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom的URL和路径现在带有双斜杠。
我在使用Gradle 3.1时遇到此错误,我曾尝试升级到Gradle 3.4.1,但问题仍然存在。

最佳答案

所以..我现在才意识到,当我更改类名:-p时,Intellij重构了依赖项名称。重构时要小心!

关于gradle - 无法使用无效的网址解析Gradle依赖项的 'spring-boot-starter-request-jpa',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42598311/

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