maven download jar package to use Ali cloud maven library method

  • 2021-01-11 02:00:26
  • OfStack

This paper introduces the maven download jar package to use Ali cloud maven library method, to share with you, the details are as follows:

Modify the setting.xml file in the conf folder in the maven installation path


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

Downloads will be fast afterwards

Method 2:

Change the pom file directly:


<!--  Ali cloud maven warehouse  -->
<repositories>
  <repository>
    <id>public</id>
    <name>aliyun nexus</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
  </repository>
</repositories>

Add this paragraph


Related articles: