Tuesday, 29 July 2014

Where is .m2 folder maven repository on mac

Where is .m2 folder which is a maven repository 

Via Find Folder on your mac 

If you search directly it won't appear so please follow as below steps
 To see .M2 repository path via folders 
Click on Go-> Find folder ->  type this ~/.m2 and click go
"~/.m2 "
==========================================================

To navigate to your .m2 folder in your mac terminal  


firstname.lastname@MRMAcNAME ~ %  cd ~/.m2

Now you are on .m2 folder to list all your files under .m2 use ls command


==========================================================

firstname.lastname@MRMAcNAME .m2 % ls

settings.xml settings.xml-20231012212836 settings.xml-20240403202322
repository

==========================================================
To navigate to particular file
firstname.lastname@MRMAcNAME .m2 % cd repository/monetdb/monetdb-jdbc/2.29/


==========================================================
Just in case if you want to delete your repository folder very quickly and easily use the below command 

firstname.lastname@MRMAcNAME .m2 % rm -rf repository

No comments:

Post a Comment