In the Maven project, specify the use of Alibaba Cloud Warehouse to download the jar package

In the Maven project, add the following configuration before the tag of pom.xml to specify the use of Alibaba Cloud warehouse to download the jar package.

<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>

<pluginRepositories>
    <pluginRepository>
        <id>public</id>
        <name>aliyun nexus</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

After specifying the download source in this way, the dependencies will not be downloaded according to the Maven local configuration.

Guess you like

Origin blog.csdn.net/m0_46864744/article/details/112283267