[GRADLE-2469] Maven cache cause Gradle fails retrieve dependencies Created: 10/Sep/12  Updated: 10/Nov/13  Resolved: 10/Nov/13

Status: Resolved
Project: Gradle
Affects Version/s: 1.1
Fix Version/s: 1.9-rc-1

Type: Bug
Reporter: Thibault Delor Assignee: Unassigned
Resolution: Fixed Votes: 0


One of my build has failed like that :

gradle compileJ
:processResources UP-TO-DATE

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/shameemah/Workspaces/SkaffoldWebsiteSpring/Data/build.gradle' line: 151
  • What went wrong:
    Execution failed for task ':compileJava'.
    > Could not resolve all dependencies for configuration ':compile'.
    > Artifact 'javax.transaction:jta:1.1@jar' not found.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 5.462 secs

One of my other project is built with maven and has also the dependency javax.transaction:jta:1.1. This project has failed because of an other dependency problem (not with javax.transaction:jta:1.1). So I guess what happened is that maven has downloaded the pom for javax.transaction:jta:1.1 but not the jar. My gradle project also use the maven local repo.
My hypothesis is that if gradle find the pom in the maven repo but not the jar, it fails and won't try to get the jar from any other source.

After clearing my maven cache, the problem has gone...

Generated at Wed Jun 30 12:22:46 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.