If you are looking for the location of where the .m2 local repository is located on your Mac device, simply open the terminal and type the command cd ~/ followed by ls -la and you should see it.
Step-by-Step to locate .m2 file on Mac
- Open Terminal,
- Type: cd ~/ to take you to your home dir
- Now Type: ls -la to see all hidden directories.
% ls -la drwxr-xr-x 4 code2care staff 128 Aug 26 10:38 . drwxr-x---+ 58 code2care staff 1856 Sep 6 15:36 .. drwx------+ 2 code2care staff 64 Sep 6 16:49 .Trash drwxr-xr-x 15 code2care staff 480 Aug 21 19:18 .android drwxr-xr-x 4 code2care staff 128 May 23 00:36 .aws drwxr-xr-x 4 code2care staff 128 Jun 16 18:26 .cache drwxr-xr-x 3 code2care staff 96 Mar 18 23:10 .config drwx------ 9 code2care staff 288 May 23 00:02 .docker drwxr-xr-x 8 code2care staff 256 Jun 16 18:26 .eclipse drwxr-xr-x 4 code2care staff 128 Aug 26 10:38 .gradle drwxr-xr-x 4 code2care staff 128 Aug 26 10:38 .m2
- You would see the .m2 directory here!
- Do a PWD and you have the location: /Users/<user-name>

-
Have Questions? Post them here!
More Posts related to HowTos,
- How to create a New Project in Visual Studio Code (VS Code)
- How to Whitelist IP Address on GoDaddy Hosting?
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum
- Fix: This app is no longer shared with you error iPhone or iPad iOS
- How to check the version of NodeJS installed
- [Error] There was an error connecting to the apple id server
- Find Restroom Near Me - Closest Toilet Nearby Using Your Current Location
- How to install xz data compression software using Brew
- Steps to Delete or Deactivate Instagram Account
- How to enable line numbers in IntelliJ
- How to display line numbers in Terminal while displaying content of a file
- Unzip a Zip file from Terminal Command
- Install SonarLint on Visual Studio Code
- How to Scan iPhone for Virus? Is Antivirus it really required?
- 100+ SEO Tips to improve your website search ranking
- [fix] Editor could not be opened unexpected error: File is a directory (VS Code)
- How to Fix Spelling Errors on Microsoft Word for Mac
- How to convert byte array to String [Kotlin]
- [Fix] Error 1020 Cloudflare: Access was denied
- Command: How to scp a file to remote server location?
- What is an Authorization Code Grant? OAuth 2.0
- How to Connect to AWS Windows EC2 UI Instance from M1 Mac (Updated 2022)
- How to replace with space
- VS Code Remove Unused Imports Keyboard Shortcut
- How to rerun last command in Zsh shell
More Posts:
- Run IntelliJ Java main method without Gradle build - Gradle
- Mac turn dark mode on or off using terminal command - MacOS
- Json Serialization and Deserialization using Java Jackson - Java
- Java Jackson with Maven Example - Java
- How to get more information about npm using brew command - HowTos
- How to rename a tab in Notepad++ - NotepadPlusPlus
- git fatal: Authentication failed error [fix] - Git
- Efficient way to perform HTTP cURL GET/POST Requests with Payload - cURL