Modify the local default location of Maven package

Time:2019-11-8

Preface

This time on shore, there will be time to sort out the computer data (obsessive-compulsive patients), to Maven and gradle’s warehouse location.

objective

Change the default location of maven

step

  • Modify Maven’s configuration file setting.xml (Maven installation location: CONF)

Modify the local default location of Maven package

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

    Setting->Build->Build Tools->Maven

    Modify the local default location of Maven package

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/