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



在为项目执行mvn清理包时,我收到以下错误,并且不了解错误的原因:

[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。

从这里开始。您是否尝试将类型添加为pom:

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

最新更新