This time on shore, there will be time to sort out the computer data (obsessive-compulsive patients), to Maven and gradle’s warehouse location.
Change the default location of maven
- Modify Maven’s configuration file setting.xml (Maven installation location: CONF)
Change the label value of the localrepository to the directory you want to set.
- Copy the modified setting.xml to the warehouse and restart it
- (not required) modify Maven settings in idea
Modify the three configuration items in a circle
This article starts with cartoon’s blog
Please indicate the source of the Reprint: https://cartoonyu.github.io/cartoon-blog/post/pm/ modify the local default location of Maven package/