我的项目分为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/5659d080d6a95.png.html
依赖项没有版本,因此会导致错误。到底是怎么回事。毕竟,我已经提供了存储库。如何解决?
答案 0 :(得分:0)
公共项目没有com.fasterxml.jackson.core:jackson-databind
的依赖项管理,因此{gra}尝试解析依赖项之前io.spring.dependency-management
插件无法设置版本