Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the difference between .ivy2 and .m2

Tags:

gradle

Previously I am using sbt, and looks like it put jar under .ivy2. And then I used gradle, I have thought it also put jar under .ivy2, but the following link told me I need to delete corrupted package from .m2. So gridle is using .m2 and can not use ivy2? spring boot mvc: failed after following the sample

like image 458
Daniel Wu Avatar asked Nov 24 '14 22:11

Daniel Wu


1 Answers

Ivy, Maven and Gradle each have their own dependency cache in ~/.ivy2/cache, ~/.m2/repository, and ~/.gradle/caches, respectively. Gradle will only use Maven's dependency cache (known as the local Maven repository) if mavenLocal() is declared as a repository in the build script. This should only be done if the Gradle build needs to consume artifacts produced by a local Maven build. (There aren't any efficiency gains; in fact declaring mavenLocal() will make the build slower and less reliable.)

like image 99
Peter Niederwieser Avatar answered Nov 11 '22 17:11

Peter Niederwieser