无法在Java的pom中找到工件org.codehaus.groovy:groovy-all:jar:2.5.6

问题描述 投票:0回答:1

在为该项目执行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>

我将Intellij用于我的Java项目。

java intellij-idea pom.xml artifact
1个回答
0
投票
来自here.,您是否尝试过将类型添加为pom

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

© www.soinside.com 2019 - 2024. All rights reserved.