zoukankan      html  css  js  c++  java
  • Maven使用阿里云镜像

    Maven确实是个好用的东西,不过在国内的话下载速度不够快,推荐使用阿里云的镜像,配置方法还是比较简单,这里是全局的配置文件 settings.xml中的内容:

    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                                  https://maven.apache.org/xsd/settings-1.0.0.xsd">
        <localRepository />
        <interactiveMode />
        <usePluginRegistry />
        <offline />
        <pluginGroups />
        <servers />
        <mirrors>
            <mirror>
            <id>nexus-aliyun</id>
            <mirrorOf>*</mirrorOf>
            <name>Nexus aliyun</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>
        </mirrors> 
        <proxies />
        <profiles />
        <activeProfiles />
    </settings>

    新建一个settings.xml的文件,将上述内容复制到该文件中,然后放置在个人目录下的 /.m2 目录下,使用maven下载包的时候就是从阿里云下载了,速度会明显快很多的。

    这里参考了@极客堂的内容,详情请点击 这里查看。

  • 相关阅读:
    POJ2175 Evacuation Plan
    POJ3252 Round Numbers
    POJ2115 C Looooops
    POJ3422 Kaka's Matrix Travels
    POJ1659 Frogs' Neighborhood
    POJ2635 The Embarrassed Cryptographer
    POJ3436 ACM Computer Factory
    FZU1607 Greedy division
    EOJ440 Buying Feed
    POJ2135 Farm Tour
  • 原文地址:https://www.cnblogs.com/justforcon/p/6792039.html
Copyright © 2011-2022 走看看