无法解析所有配置文件':compileClasspath'

时间:2018-04-29 11:23:52

标签: java spring spring-boot gradle

我的项目分为4个模块

  

commmon https://pastebin.com/EiRL7Snk(build.gradle)

     

核心https://pastebin.com/n1b1xWMb(build.gradle)

     

web https://pastebin.com/9CCrA9q0(build.gradle)

     

app https://pastebin.com/uEHZDrmQ(build.gradle)

以及项目https://pastebin.com/xbazbg5U

的主build.gradle个文件

单击build模块的app按钮构建应用程序时出现错误

* 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选项卡并显示模块的依赖关系后,我得到带下划线的错误依赖项而没有版本

  

普通https://zapodaj.net/002015941d147.png.html

     

核心https://zapodaj.net/2c9929a99daed.png.html

     

网络https://zapodaj.net/db09241a806ad.png.html

导入这些依赖项也不起作用https://zapodaj.net/5659d080d6a95.png.html

依赖项没有版本,因此会导致错误。到底是怎么回事。毕竟,我已经提供了存储库。如何解决?

1 个答案:

答案 0 :(得分:0)

公共项目没有com.fasterxml.jackson.core:jackson-databind的依赖项管理,因此{gra}尝试解析依赖项之前io.spring.dependency-management插件无法设置版本