\users\*\.m2 - Maven Local Repository

Q

Where is the Maven local repository is located?

✍: FYIcenter.com

A

Maven maintains the local repository at your home directory as the ".m2" sub-directory.

For example, the Maven local repository is \users\fyicenter\.m2 on your Windows system:

C:\fyicenter\hello>tree /f \users\fyicenter\.m2

C:\USERS\FYICENTER\.M2
----repository
    |---antlr
    |   ----antlr
    |       ----2.7.7
    |               antlr-2.7.7.jar
    |               antlr-2.7.7.jar.sha1
    |               antlr-2.7.7.pom
    |               antlr-2.7.7.pom.sha1
    |               _remote.repositories
    |               
    |---asm
    |   |---asm
    |   |   |---3.2
    |   |   |       asm-3.2.jar
    |   |   |       asm-3.2.jar.sha1
    |   |   |       asm-3.2.pom
    |   |   |       asm-3.2.pom.sha1
    |   |   |       _remote.repositories
    |   |   |       
    |   |   ----3.3.1
    |   |           asm-3.3.1.jar
    |   |           asm-3.3.1.jar.sha1
    |   |           asm-3.3.1.pom
    |   |           asm-3.3.1.pom.sha1
    |   |           _remote.repositories
    |   |           
    |   |---asm-analysis
    |   |   ----3.2
    |   |           asm-analysis-3.2.jar
    |   |           asm-analysis-3.2.jar.sha1
    |   |           asm-analysis-3.2.pom
    |   |           asm-analysis-3.2.pom.sha1
    |   |           _remote.repositories
    |   |           
    |   |---asm-commons
    |   |   ----3.2
    |   |           asm-commons-3.2.jar
    |   |           asm-commons-3.2.jar.sha1
    |   |           asm-commons-3.2.pom
    |   |           asm-commons-3.2.pom.sha1
    |   |           _remote.repositories
...    

 

Create Maven Project Manually

"mvn dependency:copy-dependencies" - JAR Dependencies

Using Apache Maven

⇑⇑ FAQ for Apache Maven

2018-10-31, 246👍, 0💬