在 java 的 pom 中找不到工件 org.codehaus.groovy:groovy-all:jar:2.5.6

And*_*rew 2 java intellij-idea artifact pom.xml maven

在为项目做 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]
Run Code Online (Sandbox Code Playgroud)

下面是我的 pom.xml 的一部分

<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>2.5.6</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

我在我的 Java 项目中使用 Intellij。

Non*_*hoi 5

这里。您是否尝试将类型添加为pom

<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>2.5.6</version>
    <type>pom</type>
</dependency>
Run Code Online (Sandbox Code Playgroud)