Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does maven install jars?

Tags:

java

maven

So I copied a Repo from my team lead's work-space into my work-space. Literally using unix CP.

Now whenever I run mvn clean install, it installs the compiled jar into the his work space.

I have checked the pom.xml in the repo and it doesn't explicitly define the target location.

I've also checked my printenv. There is no mention of my TL's work-space in any of the environment variables. Where is the location of my TL's work-space coming form?

like image 426
Aditya Avatar asked Jul 25 '26 10:07

Aditya


1 Answers

You can find your installed JARs and dependencies in your local repository.

By default, you can find it here:

  • Windows: C:\Users\USERNAME\.m2\repository
  • Linux: /home/USERNNAME/.m2/repository
  • MacOS: /Users/USERNAME/.m2/repository
like image 52
SystemGlitch Avatar answered Jul 27 '26 15:07

SystemGlitch