Friday, May 4, 2018

How do you configure your own path for maven local repository !

Problem statement: How do you configure your own path for maven build tool in your local repository ?

Step-1: download binary zip archive for apache-maven-3.x.x   (https://maven.apache.org/download.cgi)
Step-2: extract in your own path other than C drive
Step-3: open the extracted folder and go to-> maven_home\conf\settings.xml file

  <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository 
  <localRepository>/path/to/local/repo/</localRepository> - ->

Step-4: <localRepository>change with your own path</localRepository>
e.g.<localRepository>D:/ishaan/tools/.m2/repository</localRepository>
Step: enjoy !!

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...