gpt4 book ai didi

java - Heroku 找不到 groovy 依赖项

转载 作者:行者123 更新时间:2023-12-01 20:15:59 25 4
gpt4 key购买 nike

由于缺少公共(public)库,我在 Heroku 中部署 spring-boot 微服务时出现错误

[ERROR] Failed to execute goal on project config: Could not resolve dependencies for project com.test.config:config:jar:0.0.1-SNAPSHOT: Could not find artifact org.codehaus.groovy:groovy-all:jar:2.5.8 in spring-milestones (https://repo.spring.io/milestone) -> [Help 1]

它类似于 Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku 中描述的错误,但不影响本地存储库。

你知道为什么他只在 Spring Repo 中查找而不是在 Central Maven 中查找吗?

最佳答案

好的,我找到问题所在了。

必须

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.8</version>
<type>pom</type>
</dependency>

我的 pom 错过了这个

<type>pom</type> 

关于java - Heroku 找不到 groovy 依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58954255/

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