我依赖于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我的梯度配置在大约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,但问题仍然存在。
发布于 2017-03-04 17:14:26
所以..。我现在才意识到Intellij在更改类名-p时重构了依赖项名。重构时要小心!
https://stackoverflow.com/questions/42598311
复制相似问题