首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法使用无效的URL解决具有分级依赖关系的‘spring’

无法使用无效的URL解决具有分级依赖关系的‘spring’
EN

Stack Overflow用户
提问于 2017-03-04 16:24:57
回答 1查看 214关注 0票数 0

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

代码语言:javascript
复制
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小时前运行良好,没有任何变化。

代码语言:javascript
复制
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,但问题仍然存在。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-04 17:14:26

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42598311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档