阿里云maven仓库地址的配置

两种配置方式:

  1. maven 配置文件配置settings.xml中设置mirror节点

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

 2. pom.xml 配置repository节点

<repository>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<layout>default</layout>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>

阿里云云效 Maven 是什么:https://maven.aliyun.com/mvn/guide

原文地址:https://www.cnblogs.com/rainbow70626/p/14318758.html