如何配置阿里云maven库

仓库地址:https://maven.aliyun.com

仓库配置

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

或者直接在profiles->profile->repositories节点,添加如下子节点:

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

 

posted @ 2018-08-29 14:22  青苹果a  阅读(1562)  评论(0编辑  收藏  举报