6

While doing mvn clean package for the project i am getting below error and did not understand the cause of the error:

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

Below is the part of my pom.xml

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

I am using Intellij for my java project.

Naman
  • 27,789
  • 26
  • 218
  • 353
Andrew
  • 3,632
  • 24
  • 64
  • 113
  • Those are incomplete logs..the complete one would read the source as well in the log you've shared. On the other hand, here is your dependency - https://search.maven.org/artifact/org.codehaus.groovy/groovy-all/2.5.6/pom – Naman Apr 26 '20 at 17:21
  • i have updated my logs bit ...do i need to clear m2 cache or try mvn install ? – Andrew Apr 26 '20 at 17:28

1 Answers1

11

From here. Have you tried add type as pom:

<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>2.5.6</version>
    <type>pom</type>
</dependency>
Nongthonbam Tonthoi
  • 12,667
  • 7
  • 37
  • 64