3

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
  • 21,685
  • 24
  • 196
  • 332
Andrew
  • 3,322
  • 18
  • 57
  • 101
  • 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

6

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
  • 11,939
  • 6
  • 33
  • 61
  • still the issue ...i have updated my logs bit ...do i need to clear m2 cache or try mvn install ? – Andrew Apr 26 '20 at 17:25