lwp

lwp

How to modify the local repository location and mirror source of Maven

Modify Local Repository#

  1. Find the installation path of Maven and open the setting.xml file in the conf folder with Notepad or Notepad++.
  2. In the opened setting.xml, find the localRepository tag and paste the address of the newly created local repository between the tags.

image

  1. Save the file, and the Maven local storage path will be successfully modified.

Modify Mirror Source#

  1. First, open the Maven settings file settings.xml and add the following mirror under the mirrors tag:
<mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.