This might be useful when .m2 folder on your C: drive is taking too much space. In such case, you can move the content to another drive ( e:\repo) and have a symbolic link on C:\ drive instead - so that all the configuration remains intact.
The following command creates a link folder "repository" in /.m2 folder and points to the source e:\REPO
C:\>mklink /d c:\users\gtiwari\.m2\repository e:\REPO
Note:
- Syntax : mklink /d TARGET SOURCE_DIR
- For more information about the mklink command visit : http://ganeshtiwaridotcomdotnp.blogspot.com/2014/08/using-symbolic-links-on-windows.html
- we can do it using other options as mentioned in http://stackoverflow.com/questions/71030/can-i-add-maven-repositories-in-the-command-line
No comments :
Post a Comment
Your Comment and Question will help to make this blog better...