maven setting.xml configuration

Blog address: https://www.cnblogs.com/haimishasha/p/8504421.html


In maven private server, you can go to the private server address to find it when you can't find the jar package, which is convenient and fast. You can also configure Ali's fast speed.

Configure Ali in setting.xml as follows


<mirror>
  <id>nexus-aliyun</id>
  <mirrorOf>*</mirrorOf>
  <name>Nexus aliyun</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>


The default of maven's local repository is Default: ${user.home}/.m2/repository

Can be modified as follows:

  <localRepository>D:\repository</localRepository>



Guess you like

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