Modify maven central warehouse address

            After changing the computer recently, after installing the development environment, I found that maven could not download the jar package from the central warehouse. After entering the default maven warehouse address, I found that there was no jar package. There were only a few lines of prompts. Follow the prompts to find a new address, we only You need to add the mirrors tag in maven's settings.xml

      

<mirror>
      <id>maven</id>
      <mirrorOf>repository</mirrorOf>
      <name>central</name>
      <url>http://search.maven.org/#browse</url>
 </mirror>

 Restart the development tools to download the jar package

I suggest to change the local warehouse, do not use the default address, the default address is in the C drive, after a long time, your jar package will affect the speed of the system, and those jar packages will be gone after reinstalling the system.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326459934&siteId=291194637