zoukankan      html  css  js  c++  java
  • 使用阿里的maven库

    快使用阿里云的maven仓库

    自从开源中国的maven仓库挂了之后就一直在用国外的仓库,慢得想要砸电脑的心都有了。如果你和我一样受够了国外maven仓库的龟速下载?快试试阿里云提供的maven仓库,从此不在浪费生命……(感谢博主http://www.cnblogs.com/keitsi/p/6000649.html)

    仓库地址:http://maven.aliyun.com/nexus/#view-repositories;public~browsestorage

    仓库配置

    在maven的settings.xml文件里的mirrors节点,添加如下子节点:

     
    <mirror>  
        <id>alimaven</id>  
        <mirrorOf>central</mirrorOf>  
        <name>aliyun maven</name>  
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</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>
     

    settings文件的路径

    settings.xml的默认路径就:个人目录/.m2/settings.xml

    如:

    windowns: C:Users你的用户名.m2settings.xml

    linux: /home/你的用户名/.m2/settings.xml

  • 相关阅读:
    ubuntu使用iso作为本地源
    ubuntu配置简单的DNS服务器
    core data
    Core Animation教程
    制作framework&静态库
    notes
    textkit
    coretext
    nsset
    iOS Development Sites
  • 原文地址:https://www.cnblogs.com/yuanchaoyong/p/7090004.html
Copyright © 2011-2022 走看看