gpt4 book ai didi

maven - gradle依赖失败,但在那里

转载 作者:行者123 更新时间:2023-12-03 06:28:50 26 4
gpt4 key购买 nike

我有以下错误(请注意,该错误表明它找不到的jar与此错误中的位置jar名称不同...很奇怪)...

* What went wrong:
A problem occurred evaluating project ':webserver:webpiecesServerBuilder:templateProject:WEBPIECESxAPPNAME'.
> Could not resolve all files for configuration ':webserver:webpiecesServerBuilder:templateProject:WEBPIECESxAPPNAME:runtime'.
> Could not find micrometer-core.jar (io.micrometer:micrometer-core:1.4.0-SNAPSHOT:20200320.152130-173).
Searched in the following locations:
https://repo.spring.io/libs-snapshot/io/micrometer/micrometer-core/1.4.0-SNAPSHOT/micrometer-core-1.4.0-20200319.235509-170.jar

下面是目录当前内容的快照(以防该帖子持续到明天,并且有新的快照):

enter image description here

我不知道为什么找不到1.4.0-SNAPSHOT,因为我的gradle文件很简单,而依赖项很简单
'io.micrometer:micrometer-core:1.4.0-SNAPSHOT'

最佳答案

我认为这是gradle守护程序bug或其他东西。我做了rm -rf ./gradle/cache,然后它异常破了

Caused by: java.lang.NoClassDefFoundError: build_a6ssp86bmi79bk936w466ea1t$_run_closure5$_closure11
at build_a6ssp86bmi79bk936w466ea1t$_run_closure5.doCall(/Users/dean/workspace/orderly/dataapi-all/dataapi/build.gradle:111)
at org.gradle.util.ClosureBackedAction.execute(ClosureBackedAction.java:71)
at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:154)
at org.gradle.util.ConfigureUtil.configureSelf(ConfigureUtil.java:130)
at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:587)
at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:91)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:103)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection$ContainerElementsDynamicObject.tryInvokeMethod(DefaultNamedDomainObjectCollection.java:541)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)

因此,然后我杀死了gradle守护程序,瞧,它又开始工作了。

关于maven - gradle依赖失败,但在那里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60777890/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com