无法解决' spring-boot-starter-request-jpa'与使用无效URL的Gradle依赖关系

时间:2017-03-04 16:24:58

标签: gradle spring-boot

我依赖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://lddot001a.pncbank.com:8081/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom
    http://lddot001a.pncbank.com:8081/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}"
    }
}

在错误中,URL&它正在使用https://jcenter.bintray.com/org/springframework/boot/spring-boot-starter-request-jpa//spring-boot-starter-request-jpa-.pom的路径现在有一个双正斜杠。

我在使用Gradle 3.1时出现此错误,我尝试升级到Gradle 3.4.1,但问题仍然存在。

1 个答案:

答案 0 :(得分:0)

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