我有gradle项目,在我的项目中添加新的依赖项时,依赖项不会从给定的仓库中下载。 我已经检查了组织存储库,该依赖项jar不存在。 现在,如何刷新该依赖关系的组织存储库。
compile('org.springframework.boot:spring-boot-starter-data-mongodb')
也尝试过
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-mongodb', version: '1.3.3.RELEASE'
给出stacktrace
Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':compile'.
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:62)
at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:36)
at
..
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.springframework.boot:spring-boot-starter-data-mongodb:1.3.3.RELEASE.
Required by:
:DemoPoroject:unspecified
at org.gradle.internal.resolve.result.DefaultBuildableComponentResolveResult.notFound(DefaultBuildableComponentResolveResult.java:38)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolveModule(RepositoryChainComponentMetaDataResolver.java:88)
at