在为项目执行 mvn clean package 时,我收到以下错误,并且不明白错误的原因:
[ERROR] Failed to execute goal on project dbimport: Could not resolve dependencies for project
baag.betl:dbimport:jar:1.13-SNAPSHOT: Failure to find org.codehaus.groovy:groovy-all:jar:2.5.6 was cached in the local repository,
resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
下面是我的 pom.xml 的一部分
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.6</version>
</dependency>
我正在为我的 java 项目使用 Intellij。
最佳答案
来自here.您是否尝试过将类型添加为 pom
:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.6</version>
<type>pom</type>
</dependency>
关于java - 在java中的pom中找不到 Artifact org.codehaus.groovy :groovy-all:jar:2. 5.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61444749/