我的项目分为4个模块
commmon https://pastebin.com/EiRL7Snk (build.gradle)
core https://pastebin.com/n1b1xWMb (build.gradle)
web https://pastebin.com/9CCrA9q0 (build.gradle)
app https://pastebin.com/uEHZDrmQ (build.gradle)
以及项目的主build.gradle
文件https://pastebin.com/xbazbg5U
当您单击 app
模块的 build
按钮来构建应用程序时,我收到错误
* What went wrong:
Could not resolve all files for configuration ':common:compileClasspath'.
> Could not find com.fasterxml.jackson.core:jackson-databind:.
Required by:
project :common
> Could not find org.hibernate.validator:hibernate-validator:.
Required by:
project :common
以及同步期间,例如
Warning:
root project 'REST-Web-Services': Unable to resolve additional project configuration.
Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':core:compile'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.springframework.boot:spring-boot-starter-data-jpa:.
Required by:
project :core
进入 IntelliJ 中的 Gradle
选项卡并显示模块的依赖关系后,我得到了带下划线的错误依赖关系,但没有版本
common https://zapodaj.net/002015941d147.png.html
导入这些依赖项也不起作用https://zapodaj.net/5659d080d6a95.png.html
依赖项没有版本,因此会导致错误。到底是怎么回事。毕竟我已经给出了存储库。如何解决?
最佳答案
公共(public)项目没有 com.fasterxml.jackson.core:jackson-databind
的依赖管理,因此无法设置 io.spring.dependency-management
插件gradle 尝试解决依赖关系之前的版本
关于java - 无法解析配置 ':compileClasspath' 的所有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50086022/